Skip to content

Commit

Permalink
Merge pull request #9551 from dillaman/wip-16178
Browse files Browse the repository at this point in the history
cls_rbd: mirror image status summary should read full directory

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
  • Loading branch information
trociny committed Jun 7, 2016
2 parents 55cb608 + 61f86e7 commit 0c9e4ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cls/rbd/cls_rbd.cc
Expand Up @@ -3383,10 +3383,7 @@ int image_status_get_summary(cls_method_context_t hctx,
}

cls::rbd::MirrorImageStatus status;
r = image_status_get(hctx, mirror_image.global_image_id, &status);
if (r < 0) {
// Ignore.
}
image_status_get(hctx, mirror_image.global_image_id, &status);

cls::rbd::MirrorImageStatusState state = status.up ? status.state :
cls::rbd::MIRROR_IMAGE_STATUS_STATE_UNKNOWN;
Expand Down

0 comments on commit 0c9e4ba

Please sign in to comment.