Skip to content

Commit

Permalink
Merge pull request #30947 from dillaman/wip-42332
Browse files Browse the repository at this point in the history
common/ceph_context: avoid unnecessary wait during service thread shutdown

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Oct 21, 2019
2 parents 3ae93a7 + e8249d3 commit 4c2f207
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/ceph_context.cc
Expand Up @@ -197,6 +197,9 @@ class CephContextServiceThread : public Thread
{
while (1) {
std::unique_lock l(_lock);
if (_exit_thread) {
break;
}

if (_cct->_conf->heartbeat_interval) {
auto interval = ceph::make_timespan(_cct->_conf->heartbeat_interval);
Expand Down

0 comments on commit 4c2f207

Please sign in to comment.