]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: remove mirror image at shut_down when there is no images
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Fri, 25 Jun 2021 08:15:23 +0000 (10:15 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Tue, 26 Oct 2021 08:28:44 +0000 (10:28 +0200)
commit9810c3d9166487ddd2729c7ed18c861693df706e
treeec33a5b3a70b334788bb663d7979deaa17d94db1
parent0633c4adcf834cc602111b91c06814551edda620
rbd-mirror: remove mirror image at shut_down when there is no images

Some cases makes the ImageReplayer to be eternally restarted if there is
no local and remote images.

If both images are absent and that the local image id exists, the
ImageReplayer shutdown will request a mirror image removal.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
(cherry picked from commit 0c1c7fb886fcaaff5f00937cf62cf69feb8d4deb)
src/test/rbd_mirror/test_mock_ImageReplayer.cc
src/tools/rbd_mirror/image_deleter/TrashMoveRequest.cc
src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc
src/tools/rbd_mirror/image_replayer/StateBuilder.h