]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: shutdown finisher in a graceful way 11386/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sun, 9 Oct 2016 02:55:12 +0000 (10:55 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 17 Oct 2016 13:00:08 +0000 (21:00 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mgr/Mgr.cc

index 834eb9111f663c4beb160112bd388339b6eb5671..653f1314418402a587679e4381a71e40acf90407 100644 (file)
@@ -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();
 }