瀏覽代碼

[Fix] Fix eviction corner case

Issue: #2991
tags/2.0
Vsevolod Stakhov 4 年之前
父節點
當前提交
c36131d2bd
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/libutil/hash.c

+ 5
- 0
src/libutil/hash.c 查看文件

} }
} }
}); });

if (selected) {
elt = selected;
}
} }
else { else {
/* Fast random eviction */ /* Fast random eviction */
} }
} }


/* Evict if nothing else has been cleaned */
if (elt && nexpired == 0) { if (elt && nexpired == 0) {
rspamd_lru_hash_remove_node (hash, elt); rspamd_lru_hash_remove_node (hash, elt);
} }

Loading…
取消
儲存