The 'ImageCtx::apply_metadata' is guaranteed to be thread-safe but
a future commit will attempt to utilize the cached config override
set.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
bool thread_safe) {
ldout(cct, 20) << __func__ << dendl;
+ std::unique_lock image_locker(image_lock);
+
// reset settings back to global defaults
for (auto& key : config_overrides) {
std::string value;
}
}
+ image_locker.unlock();
+
#define ASSIGN_OPTION(param, type) \
param = config.get_val<type>("rbd_"#param)