Skip to content

Commit

Permalink
Merge pull request #9945 from rjfd/wip-16488
Browse files Browse the repository at this point in the history
rbd-mirror: fix potential race condition in resync listener removal

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
  • Loading branch information
trociny committed Jun 27, 2016
2 parents aaedffb + 11a5851 commit c56e782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rbd_mirror/ImageReplayer.cc
Expand Up @@ -1303,7 +1303,7 @@ void ImageReplayer<I>::shut_down(int r, Context *on_start) {
ctx->complete(0);
});
ctx = new FunctionContext([this, ctx](int r) {
m_local_image_ctx->journal->remove_listener(
m_local_journal->remove_listener(
librbd::journal::ListenerType::RESYNC, m_resync_listener);
m_local_replay->shut_down(true, ctx);
});
Expand Down

0 comments on commit c56e782

Please sign in to comment.