-
Notifications
You must be signed in to change notification settings - Fork 901
-
Notifications
You must be signed in to change notification settings - Fork 901
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
Ledger length is not updated correctly in LedgerHandleAdv #683
Comments
The problem was introduced when we use ByteBuf in 7b1eec4 |
@eolivelli since you haven't cut the 4.5.1 tag, it would be great that we include this in |
Ok |
@ivankelly has fixed this issue at #664. that will be for master. @ivankelly it would be great if you can do a similar fix (without the recycler stuffs) for branch |
removed this from |
Commit 7b1eec introduced a change which removed the length parameter to doAsyncAddEntry. This resulted in the length of the ledger being added to itself each time for a LedgerHandleAdv, which ultimately meant that that length would be 0, as it never had anything non-zero added to it. This change corrects this, by adding the length of the data parameter to the ledger length.
Commit 7b1eec introduced a change which removed the length parameter to doAsyncAddEntry. This resulted in the length of the ledger being added to itself each time for a LedgerHandleAdv, which ultimately meant that that length would be 0, as it never had anything non-zero added to it. This change corrects this, by adding the length of the data parameter to the ledger length. Author: Ivan Kelly <ivank@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org> This closes #684 from ivankelly/len-fix, closes #683
Patch merged to branch-4.5 |
The text was updated successfully, but these errors were encountered: