The ConfigProxy contains a point-in-time copy of the global config
that is dynamically updated in CephContext::_conf. Upon an image
refresh, pull the latest version of the global config from the
CephContext and apply it to the config stored within the ImageCtx.
Fixes: https://tracker.ceph.com/issues/48035
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
std::unique_lock image_locker(image_lock);
// reset settings back to global defaults
- for (auto& key : config_overrides) {
- std::string value;
- int r = cct->_conf.get_val(key, &value);
- ceph_assert(r == 0);
-
- config.set_val(key, value);
- }
config_overrides.clear();
+ config.set_config_values(cct->_conf.get_config_values());
// extract config overrides
for (auto meta_pair : meta) {