summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonen Friedman <rfriedma@redhat.com>2025-01-14 10:23:16 +0100
committerRonen Friedman <rfriedma@redhat.com>2025-01-14 10:23:16 +0100
commit5c098880829a7c2757c59dd21280baeaa93cd74a (patch)
treeb4071574733639b8732b9f245bc88c17dd9e5d0d
parentqa/scrub: change 'bin/ceph' to 'ceph' (diff)
downloadceph-5c098880829a7c2757c59dd21280baeaa93cd74a.tar.xz
ceph-5c098880829a7c2757c59dd21280baeaa93cd74a.zip
common: config_cacher: use set::contains() instead of count()
moved out of the main commit to facilitate backporting it to pre-C++20. Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
-rw-r--r--src/common/config_cacher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/config_cacher.h b/src/common/config_cacher.h
index 2befb497318..f23195955a1 100644
--- a/src/common/config_cacher.h
+++ b/src/common/config_cacher.h
@@ -40,7 +40,7 @@ class md_config_cacher_t : public md_config_obs_t {
void handle_conf_change(const ConfigProxy& conf,
const std::set<std::string>& changed) override {
- if (changed.count(keys[0])) {
+ if (changed.contains(keys[0])) {
value_cache.store(conf.get_val<ValueT>(keys[0]));
}
}