yiguolei commented on code in PR #44739: URL: https://github.com/apache/doris/pull/44739#discussion_r1862786436
########## be/src/olap/metadata_adder.h: ########## @@ -207,18 +213,24 @@ void MetadataAdder<T>::add_num(int64_t val) { } if constexpr (std::is_same_v<T, RowsetMeta>) { g_rowset_meta_num << val; + ExecEnv::GetInstance()->all_rowsets_mem_tracker()->consume(val); Review Comment: 不要这么写。 重新写一个函数,每次调用tracker 更新的时候,把所有的bvar 的值往tracker 里更新一下。 这样在下面的代码里,我们就不需要记录tracker的这些值了,假如bvar 在不停的更新,我们的tracker 也就能跟着更新了 -- 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