shuwenwei commented on code in PR #12984:
URL: https://github.com/apache/iotdb/pull/12984#discussion_r1685877661


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/rescon/memory/SystemInfo.java:
##########
@@ -196,15 +197,15 @@ public synchronized void resetFlushingMemTableCost(long 
flushingMemTableCost) {
   }
 
   public boolean addDirectBufferMemoryCost(long size) {
-    while (true) {
-      long memCost = directBufferMemoryCost.get();
+    AtomicBoolean result = new AtomicBoolean(false);

Review Comment:
   Is it necessary to use Atomic here?



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