From 2d226e287a55e5f8b59eae36182e4cc480aa711a Mon Sep 17 00:00:00 2001 From: lgbo-ustc Date: Wed, 22 Dec 2021 15:11:39 +0800 Subject: [PATCH] update comment in LRUCache::set --- src/Common/LRUCache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/LRUCache.h b/src/Common/LRUCache.h index 88f73480885..5a38e8225c1 100644 --- a/src/Common/LRUCache.h +++ b/src/Common/LRUCache.h @@ -75,9 +75,9 @@ public: } /** - * set() will fail if there is no space left and no keys could be evicted. - * In some cases, a key can be only evicted when it is not refered by anyone. - */ + * set() will fail (return false) if there is no space left and no keys could be evicted. + * Eviction permission of each key is defined by EvictPolicy. In default policy there is no restriction. + */ bool set(const Key & key, const MappedPtr & mapped) { std::lock_guard lock(mutex);