Skip to content

Commit

Permalink
[fix] DigestManager should not advance readerIndex (#3919)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljmarshall authored Apr 14, 2023
1 parent 35e9da9 commit df44920
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private ReferenceCounted computeDigestAndPackageForSendingV2(long entryId, long
buf.readerIndex(0);

if (isSmallEntry) {
buf.writeBytes(unwrapped);
buf.writeBytes(unwrapped, unwrapped.readerIndex(), unwrapped.readableBytes());
unwrapped.release();
return buf;
} else {
Expand Down

0 comments on commit df44920

Please sign in to comment.