Skip to content

Commit 424ec12

Browse files
michaeljmarshallhangc
authored and
hangc
committed
[fix] DigestManager should not advance readerIndex (#3919)
(cherry picked from commit df44920)
1 parent 25852ea commit 424ec12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/DigestManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private ReferenceCounted computeDigestAndPackageForSendingV2(long entryId, long
159159
buf.readerIndex(0);
160160

161161
if (isSmallEntry) {
162-
buf.writeBytes(unwrapped);
162+
buf.writeBytes(unwrapped, unwrapped.readerIndex(), unwrapped.readableBytes());
163163
unwrapped.release();
164164
return buf;
165165
} else {

0 commit comments

Comments
 (0)