Skip to content

Commit

Permalink
bugfix: Properties store error: crc32ReservedLength make undefine mem…
Browse files Browse the repository at this point in the history
…ory in properties when no enable AppendPropCRC
  • Loading branch information
DongyuanPan committed Jul 2, 2024
1 parent c6d3f26 commit 103132d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ class DefaultAppendMessageCallback implements AppendMessageCallback {
private static final int END_FILE_MIN_BLANK_LENGTH = 4 + 4;
// Store the message content
private final ByteBuffer msgStoreItemMemory;
private final int crc32ReservedLength = CommitLog.CRC32_RESERVED_LEN;
private final int crc32ReservedLength = enabledAppendPropCRC ? CommitLog.CRC32_RESERVED_LEN : 0;
private final MessageStoreConfig messageStoreConfig;

DefaultAppendMessageCallback(MessageStoreConfig messageStoreConfig) {
Expand Down

0 comments on commit 103132d

Please sign in to comment.