From ce6b1909dd5579326dc331937c002078c3a1e55a Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sun, 9 Oct 2016 10:55:12 +0800 Subject: [PATCH] mgr: shutdown finisher in a graceful way Signed-off-by: xie xingguo --- src/mgr/Mgr.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mgr/Mgr.cc b/src/mgr/Mgr.cc index 834eb9111f663..653f131441840 100644 --- a/src/mgr/Mgr.cc +++ b/src/mgr/Mgr.cc @@ -338,6 +338,7 @@ void Mgr::shutdown() // Then stop the finisher to ensure its enqueued contexts aren't going // to touch references to the things we're about to tear down + finisher.wait_for_empty(); finisher.stop(); } -- 2.39.5