From 45123e5612b6942b0f4ba6586be250d2069529e8 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 5 Mar 2024 14:36:07 +0000 Subject: Rename to reflect that is is a configid, not a search cluster. --- searchcore/src/vespa/searchcore/proton/matching/sessionmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'searchcore/src') diff --git a/searchcore/src/vespa/searchcore/proton/matching/sessionmanager.cpp b/searchcore/src/vespa/searchcore/proton/matching/sessionmanager.cpp index b9820e52ef9..367e9601fe5 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/sessionmanager.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/sessionmanager.cpp @@ -23,7 +23,7 @@ protected: mutable std::mutex _lock; void entryDropped(const SessionId &id); - ~SessionCacheBase() {} + ~SessionCacheBase() = default; }; template @@ -31,7 +31,7 @@ struct SessionCache : SessionCacheBase { using EntryUP = typename T::UP; vespalib::lrucache_map > _cache; - SessionCache(uint32_t max_size) : _cache(max_size) {} + explicit SessionCache(uint32_t max_size) : _cache(max_size) {} void insert(EntryUP session) { std::lock_guard guard(_lock); @@ -115,7 +115,7 @@ struct SessionMap : SessionCacheBase { toDestruct.back().swap(session); } } - for (auto key : keys) { + for (const auto & key : keys) { _map.erase(key); _stats.numTimedout++; } -- cgit v1.2.3