yiguolei commented on code in PR #23659: URL: https://github.com/apache/doris/pull/23659#discussion_r1310086560
########## be/src/runtime/memory/cache_manager.cpp: ########## @@ -43,7 +43,16 @@ int64_t CacheManager::for_each_cache_prune_stale(RuntimeProfile* profile) { int64_t CacheManager::for_each_cache_prune_all(RuntimeProfile* profile) { return for_each_cache_prune_stale_wrap( - [](CachePolicy* cache_policy) { cache_policy->prune_all(); }, profile); + [](CachePolicy* cache_policy) { cache_policy->prune_all(false); }, profile); +} + +void CacheManager::clear_once(const std::string& name) { Review Comment: using enum instead of name. name is very tricky and may be spell error or typo errors. -- 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