mgr/MgrClient: move lock init into .h

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-03-10 17:17:54 -05:00
parent 81834844f0
commit bc128e882a
2 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@
MgrClient::MgrClient(CephContext *cct_, Messenger *msgr_)
: Dispatcher(cct_), cct(cct_), msgr(msgr_),
lock("mgrc"),
timer(cct_, lock)
{
assert(cct != nullptr);

View File

@ -56,7 +56,7 @@ protected:
unique_ptr<MgrSessionState> session;
Mutex lock;
Mutex lock = {"MgrClient::lock"};
uint32_t stats_period;
SafeTimer timer;