diff options
author | Kefu Chai <kchai@redhat.com> | 2019-07-07 05:14:49 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2019-08-03 03:34:50 +0200 |
commit | c93dc8849145c1630058e4c0e527f404929216ff (patch) | |
tree | ba5aa6d6ae388bae28c30708d412172fded965b5 /src/mgr/StandbyPyModules.cc | |
parent | librados: s/Mutex/ceph::mutex/ (diff) | |
download | ceph-c93dc8849145c1630058e4c0e527f404929216ff.tar.xz ceph-c93dc8849145c1630058e4c0e527f404929216ff.zip |
mgr: s/Mutex/ceph::mutex/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/mgr/StandbyPyModules.cc')
-rw-r--r-- | src/mgr/StandbyPyModules.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mgr/StandbyPyModules.cc b/src/mgr/StandbyPyModules.cc index 988107190b3..5735b415e60 100644 --- a/src/mgr/StandbyPyModules.cc +++ b/src/mgr/StandbyPyModules.cc @@ -56,20 +56,20 @@ void StandbyPyModules::shutdown() auto module = i.second.get(); const auto& name = i.first; dout(10) << "waiting for module " << name << " to shutdown" << dendl; - lock.Unlock(); + lock.unlock(); module->shutdown(); - lock.Lock(); + lock.lock(); dout(10) << "module " << name << " shutdown" << dendl; } // For modules implementing serve(), finish the threads where we // were running that. for (auto &i : modules) { - lock.Unlock(); + lock.unlock(); dout(10) << "joining thread for module " << i.first << dendl; i.second->thread.join(); dout(10) << "joined thread for module " << i.first << dendl; - lock.Lock(); + lock.lock(); } modules.clear(); |