]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: add mirror status removal on ImageReplayer shutdown
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Mon, 7 Jun 2021 12:58:03 +0000 (14:58 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 28 Jul 2021 12:48:31 +0000 (14:48 +0200)
commita538c5d279c90397d375668baddd65776d2462b0
tree7957414e5c81fbba91242fbf819ebd7ab5b8d8a1
parent0e147f779d73d0688c2b89428db6012ed1560f20
rbd-mirror: add mirror status removal on ImageReplayer shutdown

In a scenario where you have rbd-mirror daemons on both clusters. The
rbd-mirror daemon on the primary site will not properly cleanup his
status on image removal.

This commit add a path for direct removal at the shut_down of the
ImageReplayer to properly cleanup the metadata.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/test/rbd_mirror/test_mock_MirrorStatusUpdater.cc
src/tools/rbd_mirror/ImageReplayer.cc
src/tools/rbd_mirror/ImageReplayer.h
src/tools/rbd_mirror/MirrorStatusUpdater.cc
src/tools/rbd_mirror/MirrorStatusUpdater.h