]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: do not move the images to trash while the disabling is in progress
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Tue, 18 Feb 2025 07:42:58 +0000 (13:12 +0530)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 24 Apr 2025 15:56:30 +0000 (21:26 +0530)
commit132e92a30afa2cedb03c6534cac7332aa2cfb49b
tree2edc4c95c9edcad8037b5524f97905861d1ce6ec
parent2d009c331c1324f7b0f667e41f4ad93b4e5e984c
rbd-mirror: do not move the images to trash while the disabling is in progress

Images cannot be moved to trash if the state is disabling because its a
transient state where some of the images might have got the oportunity to
disable and some of them part of the group might still be enabled
waiting for the oportunity while a group disable is in progress.

So we wait until the state DISABLING moves to next state, and see if there are
any stale image to move into a trash queue later.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
src/tools/rbd_mirror/group_replayer/BootstrapRequest.cc