liyuheng55555 commented on code in PR #12165:
URL: https://github.com/apache/iotdb/pull/12165#discussion_r1538711725


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/RegionMigrateService.java:
##########
@@ -192,7 +192,7 @@ private boolean addToTaskResultMap(long taskId) {
     if (taskResultMap.containsKey(taskId)) {
       return false;
     }
-    taskResultMap.put(taskId, unfinishedResult);
+    taskResultMap.putIfAbsent(taskId, unfinishedResult);

Review Comment:
   you can always learn something from Chief Tan !



-- 
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: reviews-unsubscr...@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to