Skip to content

Commit 4a927c6

Browse files
authored
Merge pull request ceph#63050 from nbalacha/wip-nbalacha-71138
cls/rbd: write image mirror status if state is CREATING Reviewed-by: Ilya Dryomov <[email protected]>
2 parents 9238442 + 25a8de9 commit 4a927c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cls/rbd/cls_rbd.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5073,7 +5073,8 @@ int image_status_set(cls_method_context_t hctx, const string &global_image_id,
50735073
if (r < 0) {
50745074
return 0;
50755075
}
5076-
if (mirror_image.state != cls::rbd::MIRROR_IMAGE_STATE_ENABLED) {
5076+
if (mirror_image.state != cls::rbd::MIRROR_IMAGE_STATE_ENABLED &&
5077+
mirror_image.state != cls::rbd::MIRROR_IMAGE_STATE_CREATING) {
50775078
return 0;
50785079
}
50795080

0 commit comments

Comments
 (0)