RongtongJin commented on code in PR #6571:
URL: https://github.com/apache/rocketmq/pull/6571#discussion_r1177772890


##########
store/src/main/java/org/apache/rocketmq/store/CommitLog.java:
##########
@@ -815,89 +809,72 @@ public CompletableFuture<PutMessageResult> 
asyncPutMessage(final MessageExtBroke
             }
         }
 
-        topicQueueLock.lock(topicQueueKey);
-        try {
+        PutMessageThreadLocal putMessageThreadLocal = 
this.putMessageThreadLocal.get();

Review Comment:
   > 
   
   Yes, we serialize outside of the lock, so each thread will have a ByteBuf 
for storing serialized data.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to