diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-06-20 07:48:41 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-06-21 14:21:42 +0000 |
commit | ce416c680aefce2da774a176b7eda5ef6ac5120c (patch) | |
tree | 8b31fefd584bb38c835e61c5a4f59858e4f3a385 /vespalib | |
parent | dcf26e838a7a17e4e774c3223dac45fb3c49a15a (diff) |
The _lid2Id _id2KeySet structures are not static, they follow the size of the cache.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/stllike/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/cache.h b/vespalib/src/vespa/vespalib/stllike/cache.h index f7456cda197..97ba23aba65 100644 --- a/vespalib/src/vespa/vespalib/stllike/cache.h +++ b/vespalib/src/vespa/vespalib/stllike/cache.h @@ -110,7 +110,7 @@ public: */ bool hasKey(const K & key) const; - CacheStats get_stats() const; + virtual CacheStats get_stats() const; size_t getHit() const { return _hit.load(std::memory_order_relaxed); } size_t getMiss() const { return _miss.load(std::memory_order_relaxed); } |