]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: don't hold (stale) copy of local image journal pointer 35430/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 1 Jun 2020 18:09:34 +0000 (14:09 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 6 Jun 2020 07:50:46 +0000 (09:50 +0200)
commite2012764dce4bd05d9198cc0af422b54cac208c4
treef8a22004776774c2b31dfd3773e1d7f4ef24c9c6
parent1e0ec3533539118eafdcd26ff86b0254fead92d6
rbd-mirror: don't hold (stale) copy of local image journal pointer

The exclusive-lock manages its life cycle and can close the journal
at any point. This can result in rbd-mirror deferencing a freed pointer
or a journal state machine that is in an unexpected state.

Fixes: https://tracker.ceph.com/issues/45803
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 295483fbdc377d633addf5ec8ae2600a741db78c)
src/test/rbd_mirror/image_replayer/journal/test_mock_Replayer.cc
src/tools/rbd_mirror/image_replayer/journal/Replayer.cc
src/tools/rbd_mirror/image_replayer/journal/Replayer.h