]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: track journal replay flush requests to prevent race 35348/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 3 Jun 2020 13:40:32 +0000 (09:40 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 3 Jun 2020 13:40:32 +0000 (09:40 -0400)
commit975a0d253a22bf22d3ec10e738ddae15834d7994
tree8e717e684aea2dbb23727d0c56451d9cc1de0d9d
parente94bee327821f61aa8ff0984c5d066e2d2c2181d
rbd-mirror: track journal replay flush requests to prevent race

If a journal replay flush is in-progress when the ImageReplayer is stopped,
it can race and result in an assertion failure due to two attempted shutdowns
of the same journal replay state machine.

Fixes: https://tracker.ceph.com/issues/45409
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/image_replayer/journal/Replayer.cc
src/tools/rbd_mirror/image_replayer/journal/Replayer.h