]> 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>
Wed, 30 Jul 2025 17:06:02 +0000 (22:36 +0530)
commita7b2d4ab30c62db1fecf7ed4565a30de60145416
tree578190ea35852f8f7bffd5b010315dd9db746ec9
parent8356a0be6850e4f162b8c6e76e40c81dab442f46
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