]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd: write image mirror status if state is CREATING
authorN Balachandran <nithya.balachandran@ibm.com>
Wed, 30 Apr 2025 05:15:13 +0000 (10:45 +0530)
committerN Balachandran <nithya.balachandran@ibm.com>
Mon, 12 May 2025 11:45:32 +0000 (17:15 +0530)
commitea72e066df74086a7003fb1a3f39723356af4219
treefea49ef56f5823835a11bd649232da95273f6cc4
parent974ee84677ffe25334ae5f266de3b8498763d430
rbd: write image mirror status if state is CREATING

It can take upto 30s for the image mirror status to be written
to rbd_mirroring on the secondary for a newly created image. This fix
attempts to reduce the time by writing the status to rbd_mirroring even
if the image state is set to CREATING.

Fixes: https://tracker.ceph.com/issues/71138
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit 25a8de9c3db8309387eed3502e781872bc1e035e)
src/cls/rbd/cls_rbd.cc