Skip to content

Commit

Permalink
Merge pull request #7519 from xiexingguo/xxg-wip-finisher
Browse files Browse the repository at this point in the history
librados: shutdown finisher in a more graceful way

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Feb 5, 2016
2 parents 3368997 + 501ddff commit c4f9d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/librados/RadosClient.cc
Expand Up @@ -333,6 +333,7 @@ void librados::RadosClient::shutdown()
return;
}
if (state == CONNECTED) {
finisher.wait_for_empty();
finisher.stop();
}
bool need_objecter = false;
Expand Down
1 change: 1 addition & 0 deletions src/os/filestore/JournalingObjectStore.cc
Expand Up @@ -20,6 +20,7 @@ void JournalingObjectStore::journal_start()
void JournalingObjectStore::journal_stop()
{
dout(10) << "journal_stop" << dendl;
finisher.wait_for_empty();
finisher.stop();
}

Expand Down

0 comments on commit c4f9d26

Please sign in to comment.