Signed-off-by: Sage Weil <sage@redhat.com>
}
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);