]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: don't hold (stale) copy of local image journal pointer
authorJason Dillaman <dillaman@redhat.com>
Mon, 1 Jun 2020 18:09:34 +0000 (14:09 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 2 Jun 2020 14:55:51 +0000 (10:55 -0400)
commit295483fbdc377d633addf5ec8ae2600a741db78c
tree06722686080a5ef694f8ab7065f8a0617853909a
parent1ecea058c5988f120b93df482f5ba28263e45576
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>
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