Skip to content

Commit b74b612

Browse files
authored
Merge pull request ceph#63235 from nbalacha/wip-71241-tentacle
tentacle: cls/rbd: write image mirror status if state is CREATING Reviewed-by: Ilya Dryomov <[email protected]>
2 parents 28606fd + 9299311 commit b74b612

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)