We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 831d2c1 commit c8daf2eCopy full SHA for c8daf2e
1 file changed
be/src/runtime/memory/lru_cache_policy.h
@@ -120,7 +120,7 @@ class LRUCachePolicy : public CachePolicy {
120
void prune_stale() override {
121
COUNTER_SET(_freed_entrys_counter, (int64_t)0);
122
COUNTER_SET(_freed_memory_counter, (int64_t)0);
123
- 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()) {
124
return;
125
}
126
if (exceed_prune_limit()) {
0 commit comments