yiguolei commented on code in PR #44739:
URL: https://github.com/apache/doris/pull/44739#discussion_r1862786585


##########
be/src/olap/rowset/segment_v2/segment.cpp:
##########
@@ -200,6 +203,8 @@ Status Segment::_open() {
     _meta_mem_usage += (_num_rows + 1023) / 1024 * (36 + 4);
     // 0.01 comes from PrimaryKeyIndexBuilder::init
     _meta_mem_usage += BloomFilter::optimal_bit_num(_num_rows, 0.01) / 8;
+    _tracked_meta_mem_usage = _meta_mem_usage;
+    
ExecEnv::GetInstance()->all_segments_mem_tracker()->consume(_tracked_meta_mem_usage);

Review Comment:
   参考上面那个评论,不要改这里的代码了。



-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to