Skip to content

Commit

Permalink
common/ceph_context: avoid unnecessary wait during service thread shu…
Browse files Browse the repository at this point in the history
…tdown

Fixes: https://tracker.ceph.com/issues/42332
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Oct 15, 2019
1 parent 299e836 commit e8249d3
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 e8249d3

Please sign in to comment.