Skip to content

Commit

Permalink
Fix CRC32 Check Failing When Value is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
guyinyou committed Jan 10, 2025
1 parent e0db654 commit fa0c33c
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 fa0c33c

Please sign in to comment.