Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RATIS-1627. InstallSnapshotRequests add properties : totalSize #684

Merged
merged 2 commits into from
Jul 19, 2022

Conversation

JoeCqupt
Copy link
Contributor

What changes were proposed in this pull request?

in method : org.apache.ratis.server.leader.InstallSnapshotRequests#newInstallSnapshotRequest;

it is unnecessary to compute repeatedly the total size of snapshot .

What is the link to the Apache JIRA

RATIS-1627. InstallSnapshotRequests add properties : totalSize

https://issues.apache.org/jira/browse/RATIS-1627

How was this patch tested?

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoeCqupt , thanks a lot for working on this. This is a good idea. Just a comment inlined.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@szetszwo szetszwo closed this Jul 19, 2022
@szetszwo szetszwo reopened this Jul 19, 2022
@szetszwo szetszwo merged commit a69f3fb into apache:master Jul 19, 2022
szetszwo pushed a commit that referenced this pull request Jul 21, 2022
symious pushed a commit to symious/ratis that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants