mirror of
https://github.com/ceph/ceph
synced 2025-04-17 04:41:36 +00:00
common/config: fix the lock in ConfigProxy::diff()
it's a regression introduced by e406d8eb9e
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
f89bde3f93
commit
40e76aa4f0
@ -71,8 +71,8 @@ public:
|
|||||||
return config.find_option(name);
|
return config.find_option(name);
|
||||||
}
|
}
|
||||||
void diff(Formatter *f, const std::string& name=string{}) const {
|
void diff(Formatter *f, const std::string& name=string{}) const {
|
||||||
return config.diff(values, f, name);
|
|
||||||
Mutex::Locker l{lock};
|
Mutex::Locker l{lock};
|
||||||
|
return config.diff(values, f, name);
|
||||||
}
|
}
|
||||||
void get_my_sections(std::vector <std::string> §ions) const {
|
void get_my_sections(std::vector <std::string> §ions) const {
|
||||||
Mutex::Locker l{lock};
|
Mutex::Locker l{lock};
|
||||||
|
Loading…
Reference in New Issue
Block a user