]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: mark_down during get_monmap_privately() shutdown 356/head
authorSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 14:39:02 +0000 (07:39 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 17:53:06 +0000 (10:53 -0700)
We explicitly mark_down() and clear cur_con when shutting down; do the same
for get_monmap_privately() to ensure that the reset event doesn't make us
do something silly (like, in this case, call _reopen_session() again).

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

index 48956aa85c5b3b9d847ea9a2beaa81714ddfc7cc..1243376eb370ad7b07dbb503342cbe1e55ca6a4d 100644 (file)
@@ -143,6 +143,8 @@ int MonClient::get_monmap_privately()
   }
 
   if (temp_msgr) {
+    messenger->mark_down(cur_con);
+    cur_con.reset(NULL);
     monc_lock.Unlock();
     messenger->shutdown();
     if (smessenger)