Skip to content

Commit

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

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Jun 10, 2016
2 parents 41c5c27 + 3b8cb63 commit ba5d490
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cls/rbd/cls_rbd.cc
Expand Up @@ -3380,10 +3380,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 ba5d490

Please sign in to comment.