Skip to content

Commit

Permalink
mon: shutdown finisher in a more graceful way
Browse files Browse the repository at this point in the history
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Jun 20, 2016
1 parent eec8491 commit 9f9a8aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mon/MonClient.cc
Expand Up @@ -427,6 +427,7 @@ void MonClient::shutdown()
monc_lock.Unlock();

if (initialized) {
finisher.wait_for_empty();
finisher.stop();
}
monc_lock.Lock();
Expand Down

0 comments on commit 9f9a8aa

Please sign in to comment.