This method was previously only available for seastart builds, but
librbd will also use it to control the timing of updates to the global
config.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ConfigValues* operator->() noexcept {
return &values;
}
-#ifdef WITH_SEASTAR
void set_config_values(const ConfigValues& val) {
+#ifndef WITH_SEASTAR
+ std::lock_guard l{lock};
+#endif
values = val;
}
-#endif
int get_val(const std::string_view key, char** buf, int len) const {
std::lock_guard l{lock};
return config.get_val(values, key, buf, len);