aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-03-05 14:36:07 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2024-03-05 14:36:07 +0000
commit45123e5612b6942b0f4ba6586be250d2069529e8 (patch)
tree7fca0cdda35c77aef67e56ff9ac423d9989af1e3 /searchcore
parentb706db42b706a16993b0c62531b329bc45862ce1 (diff)
Rename to reflect that is is a configid, not a search cluster.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/sessionmanager.cpp6
1 files changed, 3 insertions, 3 deletions
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 <typename T>
@@ -31,7 +31,7 @@ struct SessionCache : SessionCacheBase {
using EntryUP = typename T::UP;
vespalib::lrucache_map<vespalib::LruParam<SessionId, EntryUP> > _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<std::mutex> 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++;
}