mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
mgr/MgrClient: move lock init into .h
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
81834844f0
commit
bc128e882a
@ -31,7 +31,6 @@
|
||||
|
||||
MgrClient::MgrClient(CephContext *cct_, Messenger *msgr_)
|
||||
: Dispatcher(cct_), cct(cct_), msgr(msgr_),
|
||||
lock("mgrc"),
|
||||
timer(cct_, lock)
|
||||
{
|
||||
assert(cct != nullptr);
|
||||
|
@ -56,7 +56,7 @@ protected:
|
||||
|
||||
unique_ptr<MgrSessionState> session;
|
||||
|
||||
Mutex lock;
|
||||
Mutex lock = {"MgrClient::lock"};
|
||||
|
||||
uint32_t stats_period;
|
||||
SafeTimer timer;
|
||||
|
Loading…
Reference in New Issue
Block a user