From 9f9a8aab75869d111abbfe938a4bfa31c349b7f5 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 23 May 2016 14:42:18 +0800 Subject: [PATCH] mon: shutdown finisher in a more graceful way Signed-off-by: xie xingguo --- src/mon/MonClient.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 6ae7b457406..6cb7766d132 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -427,6 +427,7 @@ void MonClient::shutdown() monc_lock.Unlock(); if (initialized) { + finisher.wait_for_empty(); finisher.stop(); } monc_lock.Lock(); -- 2.47.3