]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: correct the client_lock order when cleanup 8915/head
authorVicente Cheng <freeze.bilsted@gmail.com>
Tue, 3 May 2016 10:28:31 +0000 (18:28 +0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Tue, 3 May 2016 17:05:34 +0000 (01:05 +0800)
    As 448bea4, we need to handle a dependency
    between client lock and admin socket lock.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
src/client/Client.cc

index 7fcd907bc6898df80b1fe8760b64f2e27633cbf7..1e79390964a600dce481e09f03cbe824919d800e 100644 (file)
@@ -490,9 +490,9 @@ int Client::init()
   int r = monclient->init();
   if (r < 0) {
     // need to do cleanup because we're in an intermediate init state
-    objecter->shutdown();
     timer.shutdown();
     client_lock.Unlock();
+    objecter->shutdown();
     objectcacher->stop();
     monclient->shutdown();
     return r;