From a0f96de277b9a12b66a65d548f7a86e0a78df329 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 29 Apr 2015 21:50:27 +0100 Subject: [PATCH] mds: in damaged() call flush_log before ending ...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 --- src/mds/MDS.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index 74a40821be7e..74c3a8778465 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -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); -- 2.47.3