]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: shutdown: remove sessions under mon->lock
authorSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 15:47:20 +0000 (08:47 -0700)
committerSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 15:47:20 +0000 (08:47 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index 90750dd7b11673a70ae7976b0d2a3af7a87ad3db..6c943832ac1c3590e0f34093b059a9a37c49e55c 100644 (file)
@@ -605,13 +605,13 @@ void Monitor::shutdown()
   finish_contexts(g_ceph_context, waitfor_quorum, -ECANCELED);
   finish_contexts(g_ceph_context, maybe_wait_for_quorum, -ECANCELED);
 
-
   timer.shutdown();
 
+  remove_all_sessions();
+
   // unlock before msgr shutdown...
   lock.Unlock();
 
-  remove_all_sessions();
   messenger->shutdown();  // last thing!  ceph_mon.cc will delete mon.
 }