From 395ad35c93a185291a16449b1ac4d1dcecb1a127 Mon Sep 17 00:00:00 2001 From: Shanfeng Pang Date: Thu, 22 Feb 2024 10:41:16 +0800 Subject: [PATCH] fix LRUResource Cache bug --- src/Common/LRUResourceCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/LRUResourceCache.h b/src/Common/LRUResourceCache.h index 4ccaa272346..60b4053bff5 100644 --- a/src/Common/LRUResourceCache.h +++ b/src/Common/LRUResourceCache.h @@ -221,7 +221,7 @@ private: { std::lock_guard lock(mutex); auto it = cells.find(key); - if (it != cells.end() && !it->second.expired) + if (it != cells.end()) { if (!it->second.expired) {