mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Timer must be initialized in Client::init and shutdown in
Client::shutdown. Signed-off-by: Samuel Just <samuelj@hq.newdream.net>
This commit is contained in:
parent
8eb4de9e6e
commit
3f8f59059a
@ -256,6 +256,7 @@ void Client::dump_cache()
|
||||
void Client::init()
|
||||
{
|
||||
Mutex::Locker lock(client_lock);
|
||||
timer.init();
|
||||
|
||||
objectcacher->start();
|
||||
|
||||
@ -298,6 +299,7 @@ void Client::shutdown()
|
||||
objectcacher->stop(); // outside of client_lock! this does a join.
|
||||
|
||||
client_lock.Lock();
|
||||
timer.shutdown();
|
||||
objecter->shutdown();
|
||||
client_lock.Unlock();
|
||||
monclient->shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user