From c8c5da70c74ef505c987aec5500a660a7267aa24 Mon Sep 17 00:00:00 2001 From: XieHan Date: Thu, 25 Aug 2022 15:18:17 +0800 Subject: [PATCH] fix LRUCache prune() --- src/util/LRUCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/LRUCache.h b/src/util/LRUCache.h index c08605ab..6b13d493 100644 --- a/src/util/LRUCache.h +++ b/src/util/LRUCache.h @@ -105,7 +105,7 @@ public: list_for_each_safe(pos, tmp, &this->not_use) { - e = list_entry(&pos, Handle, list); + e = list_entry(pos, Handle, list); assert(e->ref == 1); rb_erase(&e->rb); this->erase_node(e);