This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new c8daf2e4fb0 branch-2.1: [fix](cache prune) Fix _stale_sweep_time_s not 
working when its value less than 0 #42281 (#51189)
c8daf2e4fb0 is described below

commit c8daf2e4fb0d00b4e48044673a94bae6967bb875
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jun 5 12:14:24 2025 +0800

    branch-2.1: [fix](cache prune) Fix _stale_sweep_time_s not working when its 
value less than 0 #42281 (#51189)
    
    Cherry-picked from #42281
    
    Co-authored-by: zhiqiang <seuhezhiqi...@163.com>
---
 be/src/runtime/memory/lru_cache_policy.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/runtime/memory/lru_cache_policy.h 
b/be/src/runtime/memory/lru_cache_policy.h
index 1b6c9ead6d0..b5b25f1f9b8 100644
--- a/be/src/runtime/memory/lru_cache_policy.h
+++ b/be/src/runtime/memory/lru_cache_policy.h
@@ -120,7 +120,7 @@ public:
     void prune_stale() override {
         COUNTER_SET(_freed_entrys_counter, (int64_t)0);
         COUNTER_SET(_freed_memory_counter, (int64_t)0);
-        if (_stale_sweep_time_s <= 0 && _cache == 
ExecEnv::GetInstance()->get_dummy_lru_cache()) {
+        if (_stale_sweep_time_s <= 0 || _cache == 
ExecEnv::GetInstance()->get_dummy_lru_cache()) {
             return;
         }
         if (exceed_prune_limit()) {


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

Reply via email to