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_r316082870
 
 

 ##########
 File path: store/src/main/java/org/apache/rocketmq/store/CommitLog.java
 ##########
 @@ -569,7 +586,19 @@ public PutMessageResult putMessage(final 
MessageExtBrokerInner msg) {
             }
         }
 
-        long elapsedTimeInLock = 0;
+
+        InetSocketAddress bornSocketAddress = (InetSocketAddress) 
msg.getBornHost();
+        if (bornSocketAddress.getAddress() instanceof Inet6Address) {
+            msg.setBornHostV6Flag();
+        }
+
+        InetSocketAddress storeSocketAddress = (InetSocketAddress) 
msg.getStoreHost();
+        if (storeSocketAddress.getAddress() instanceof Inet6Address) {
+            msg.setStoreHostAddressV6Flag();
+        }
+
+        long eclipseTimeInLock = 0;
 
 Review comment:
   What you said has been revised.

----------------------------------------------------------------
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