]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: clarify comment 31401/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 5 Nov 2019 08:15:20 +0000 (00:15 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 5 Nov 2019 08:38:58 +0000 (00:38 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSDaemon.cc

index 9e96338242b36a43e6d1fe06112546ed8e4f0ca7..dca474034866dae194092cf238c927498b5b3723 100644 (file)
@@ -917,12 +917,11 @@ void MDSDaemon::suicide()
 
   clean_up_admin_socket();
 
-  // Inform MDS we are going away, then shut down beacon
+  // Notify the Monitors (MDSMonitor) that we're dying, so that it doesn't have
+  // to wait for us to go laggy. Only do this if we're actually in the MDSMap,
+  // because otherwise the MDSMonitor will drop our message.
   beacon.set_want_state(*mdsmap, MDSMap::STATE_DNE);
   if (!mdsmap->is_dne_gid(mds_gid_t(monc->get_global_id()))) {
-    // Notify the MDSMonitor that we're dying, so that it doesn't have to
-    // wait for us to go laggy.  Only do this if we're actually in the
-    // MDSMap, because otherwise the MDSMonitor will drop our message.
     beacon.send_and_wait(1);
   }
   beacon.shutdown();