Skip to content

Commit

Permalink
[ISSUE #9121] Fix CRC32 Check Failing When Value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
guyinyou authored Jan 11, 2025
1 parent e0db654 commit 119a0be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public DispatchRequest checkMessageAndReturnSize(java.nio.ByteBuffer byteBuffer,
}
}
}
if (expectedCRC > 0) {
if (expectedCRC >= 0) {
ByteBuffer tmpBuffer = byteBuffer.duplicate();
tmpBuffer.position(tmpBuffer.position() - totalSize);
tmpBuffer.limit(tmpBuffer.position() + totalSize - CommitLog.CRC32_RESERVED_LEN);
Expand Down

0 comments on commit 119a0be

Please sign in to comment.