Skip to content

Commit

Permalink
Merge pull request #16704 from dillaman/wip-20644
Browse files Browse the repository at this point in the history
rbd-mirror: assertion failure during pool replayer shut down

Reviewed-by: Venky Shankar <vshankar@redhat.com>
  • Loading branch information
liewegas committed Aug 5, 2017
2 parents 2065ca6 + 33f5e1b commit 3612e5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tools/rbd_mirror/PoolReplayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,15 @@ void PoolReplayer::shut_down() {
}
if (m_leader_watcher) {
m_leader_watcher->shut_down();
m_leader_watcher.reset();
}
if (m_instance_watcher) {
m_instance_watcher->shut_down();
m_instance_watcher.reset();
}
if (m_instance_replayer) {
m_instance_replayer->shut_down();
m_instance_replayer.reset();
}

assert(!m_local_pool_watcher);
Expand Down Expand Up @@ -471,7 +474,9 @@ void PoolReplayer::run()
break;
}

m_cond.WaitInterval(m_lock, utime_t(1, 0));
if (!m_stopping) {
m_cond.WaitInterval(m_lock, utime_t(1, 0));
}
}
}

Expand Down

0 comments on commit 3612e5e

Please sign in to comment.