]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reorder suicide/shutdown a bit
authorSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 15:46:57 +0000 (08:46 -0700)
committerSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 15:46:57 +0000 (08:46 -0700)
* shutdown msgr last
* stop timer quickly, in case there are other events

Signed-off-by: Sage Weil <sage@inktank.com>
src/mds/MDS.cc

index a867961ccf3aa644700ec2443ff280882a267248..e70d6fd4dff8f41706f697597392f84c09911326 100644 (file)
@@ -1628,19 +1628,18 @@ void MDS::suicide()
   }
   timer.cancel_all_events();
   //timer.join();
+  timer.shutdown();
   
   // shut down cache
   mdcache->shutdown();
 
   if (objecter->initialized)
     objecter->shutdown_locked();
-  
-  // shut down messenger
-  messenger->shutdown();
 
   monc->shutdown();
 
-  timer.shutdown();
+  // shut down messenger
+  messenger->shutdown();
 }
 
 void MDS::respawn()