Add case MESSAGE_MAGIC_CODE_V2

This commit is contained in:
nowinkey
2023-02-14 13:50:47 +08:00
committed by Zhouxiang Zhan
parent d2a4b70476
commit 64dbc26950
@@ -3030,9 +3030,10 @@ public class DefaultMessageStore implements MessageStore {
int magicCode = byteBuffer.getInt();
switch (magicCode) {
case CommitLog.MESSAGE_MAGIC_CODE:
case MessageDecoder.MESSAGE_MAGIC_CODE:
case MessageDecoder.MESSAGE_MAGIC_CODE_V2:
break;
case CommitLog.BLANK_MAGIC_CODE:
case MessageDecoder.BLANK_MAGIC_CODE:
totalSize = 0;
break;
default: