Skip to content

Commit

Permalink
Merge pull request #9555 from Abhishekvrshny/wip-16147-jewel
Browse files Browse the repository at this point in the history
jewel: Object Map is showing as invalid, even when Object Map is disabled for that Image.

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Jun 10, 2016
2 parents 3715d20 + 09200d4 commit 32f90a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librbd/internal.cc
Expand Up @@ -1776,15 +1776,15 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force,
return -EINVAL;
}

disable_flags = RBD_FLAG_OBJECT_MAP_INVALID;
disable_flags |= RBD_FLAG_OBJECT_MAP_INVALID;
r = remove_object_map(ictx);
if (r < 0) {
lderr(cct) << "failed to remove object map" << dendl;
return r;
}
}
if ((features & RBD_FEATURE_FAST_DIFF) != 0) {
disable_flags = RBD_FLAG_FAST_DIFF_INVALID;
disable_flags |= RBD_FLAG_FAST_DIFF_INVALID;
}
if ((features & RBD_FEATURE_JOURNALING) != 0) {
rbd_mirror_mode_t mirror_mode;
Expand Down

0 comments on commit 32f90a7

Please sign in to comment.