BiteTheDDDDt commented on code in PR #52996:
URL: https://github.com/apache/doris/pull/52996#discussion_r2196672093


##########
be/src/olap/memtable.cpp:
##########
@@ -177,7 +177,8 @@ MemTable::~MemTable() {
     }
     if (_is_flush_success) {
         // If the memtable is flush success, then its memtracker's consumption 
should be 0
-        if (_mem_tracker->consumption() != 0 && 
config::crash_in_memory_tracker_inaccurate) {
+        if (_mem_tracker->consumption() != _arena.size() &&

Review Comment:
   _arena自己的内存在对象析构后就会释放,有一个基础size,clear了也不会是0



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to