]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: in damaged() call flush_log before ending 4519/head
authorJohn Spray <john.spray@redhat.com>
Wed, 29 Apr 2015 20:50:27 +0000 (21:50 +0100)
committerJohn Spray <john.spray@redhat.com>
Fri, 1 May 2015 18:37:11 +0000 (19:37 +0100)
...so that the clog messages we send before damaged()
actually have a chance to make it to the cluster log.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDS.cc

index 74a40821be7ea53594d160dc7146a278649be73a..74c3a8778465171744ff1ec12b994fa5921ac1c7 100644 (file)
@@ -2372,6 +2372,7 @@ void MDS::handle_signal(int signum)
 void MDS::damaged()
 {
   set_want_state(MDSMap::STATE_DAMAGED);
+  monc->flush_log();  // Flush any clog error from before we were called
   beacon.notify_health(this);  // Include latest status in our swan song
   beacon.send_and_wait(g_conf->mds_mon_shutdown_timeout);