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 May 23, 2016
1 parent ed9f9d4 commit cf2d42b
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 cf2d42b

Please sign in to comment.