]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: image-replayer: Fix bug in resync listener remotion
authorRicardo Dias <rdias@suse.com>
Mon, 27 Jun 2016 10:07:41 +0000 (11:07 +0100)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Aug 2016 15:28:19 +0000 (11:28 -0400)
Fixes: http://tracker.ceph.com/issues/16488
Signed-off-by: Ricardo Dias <rdias@suse.com>
(cherry picked from commit 11a5851e90bca2c1813156bf12dda0192965db37)

src/tools/rbd_mirror/ImageReplayer.cc

index dd21f8b167a67dd3542bf338cf3b2350f5f39f5b..0f6987ff16deb3852cb4e879fec18d043bebe844 100644 (file)
@@ -1304,7 +1304,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);
       });