supercym commented on a change in pull request #1352: [RIP-15]Add Ipv6 support 
for RocketMQ
URL: https://github.com/apache/rocketmq/pull/1352#discussion_r316082479
 
 

 ##########
 File path: 
broker/src/main/java/org/apache/rocketmq/broker/processor/PullMessageProcessor.java
 ##########
 @@ -494,7 +495,10 @@ public void executeConsumeMessageHookBefore(final 
ConsumeMessageContext context)
             for (ByteBuffer bb : messageBufferList) {
 
                 byteBuffer.put(bb);
-                storeTimestamp = 
bb.getLong(MessageDecoder.MESSAGE_STORE_TIMESTAMP_POSTION);
+                int sysFlag = bb.getInt(MessageDecoder.SYSFLAG_POSITION);
+                int bornhostLength = (sysFlag & 
MessageSysFlag.BORNHOST_V6_FLAG) == 0 ? 8 : 20;
 
 Review comment:
   The necessary comments have been added.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to