This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 607f2357c4c branch-3.0: [fix](cache prune) Fix _stale_sweep_time_s not
working when its value less than 0 #42281 (#51188)
607f2357c4c is described below
commit 607f2357c4cb1a9960e0024aced24ec2f306e240
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat May 24 10:40:19 2025 +0800
branch-3.0: [fix](cache prune) Fix _stale_sweep_time_s not working when its
value less than 0 #42281 (#51188)
Cherry-picked from #42281
Co-authored-by: zhiqiang <[email protected]>
---
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 6fb10c8fd97..7bd2ca486ac 100644
--- a/be/src/runtime/memory/lru_cache_policy.h
+++ b/be/src/runtime/memory/lru_cache_policy.h
@@ -157,7 +157,7 @@ public:
std::lock_guard<std::mutex> l(_lock);
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: [email protected]
For additional commands, e-mail: [email protected]