]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: fix debug output for config callbacks changes
authorSage Weil <sage@redhat.com>
Fri, 16 Nov 2018 10:38:31 +0000 (04:38 -0600)
committerSage Weil <sage@redhat.com>
Fri, 16 Nov 2018 11:05:36 +0000 (05:05 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config.cc

index ef9f6a16f3e5791fcc3e77c6e058c1af54905bfb..d9a69f94c2c526ac231a29d50571df1e0c1a32b1 100644 (file)
@@ -275,10 +275,11 @@ int md_config_t::set_mon_vals(CephContext *cct,
   }
 
   for (auto& i : kv) {
-    if (config_cb && config_cb(i.first, i.second)) {
-      ldout(cct, 4) << __func__ << " callback consumed " << i.first << dendl;
-      continue;
-    } else {
+    if (config_cb) {
+      if (config_cb(i.first, i.second)) {
+       ldout(cct, 4) << __func__ << " callback consumed " << i.first << dendl;
+       continue;
+      }
       ldout(cct, 4) << __func__ << " callback ignored " << i.first << dendl;
     }
     const Option *o = find_option(i.first);