Skip to content

Commit

Permalink
[ISSUE #8350] Properties store error: crc32ReservedLength make undefi…
Browse files Browse the repository at this point in the history
…ne memory in properties when no enable AppendPropCRC (#8351)
  • Loading branch information
DongyuanPan authored Jul 16, 2024
1 parent 6f77f05 commit 259efdb
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 259efdb

Please sign in to comment.