This is an automated email from the ASF dual-hosted git repository.
yuzhou pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 38c56cd84b [ISSUE #8293] Remove the redundant code from the
MessageDecoder#encodeMessage method (#8294)
38c56cd84b is described below
commit 38c56cd84b4079971fd5989bc6702c00c5621472
Author: mxsm <[email protected]>
AuthorDate: Thu Jun 13 15:31:16 2024 +0800
[ISSUE #8293] Remove the redundant code from the
MessageDecoder#encodeMessage method (#8294)
---
.../src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java | 1 -
1 file changed, 1 deletion(-)
diff --git
a/common/src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java
b/common/src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java
index b053f82759..f5491e192a 100644
---
a/common/src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java
+++
b/common/src/main/java/org/apache/rocketmq/common/message/MessageDecoder.java
@@ -666,7 +666,6 @@ public class MessageDecoder {
byte[] propertiesBytes = properties.getBytes(CHARSET_UTF8);
//note properties length must not more than Short.MAX
short propertiesLength = (short) propertiesBytes.length;
- int sysFlag = message.getFlag();
int storeSize = 4 // 1 TOTALSIZE
+ 4 // 2 MAGICCOD
+ 4 // 3 BODYCRC