]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: synchronize with in-flight stop in ImageReplayer::stop()
authorIlya Dryomov <idryomov@gmail.com>
Sun, 20 Feb 2022 16:33:08 +0000 (17:33 +0100)
committerPonnuvel Palaniyappan <pponnuvel@gmail.com>
Wed, 11 May 2022 06:18:12 +0000 (07:18 +0100)
commit484d3534f4e278092ceca45c32ca3ff31b30bd24
tree06ae4baa0dff7ca647a3b74d8eb193d85c1fe402
parent54b0b7a38528eb77f6e6bdb53286e36f9d4ecb44
rbd-mirror: synchronize with in-flight stop in ImageReplayer::stop()

Complete on_finish right away only if the replayer is stopped (meaning
that it is legible to be restarted immediately, possibly from on_finish
itself).  This is the behaviour pretty much anyone would assume and
also what ImageReplayer::restart() relies on.

Fixes: https://tracker.ceph.com/issues/54344
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 8965a0f2a6f7bdbe732be94b1ee269cab5be0a2a)
src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.cc