From: Jason Dillaman Date: Tue, 17 Apr 2018 20:45:24 +0000 (-0400) Subject: librbd: corrected usage of ImageState::open flag parameter X-Git-Tag: v14.0.1~590^2~12 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=178aaa03b1cebd8a6d0522aa4cc322ee4bc34b48;p=ceph.git librbd: corrected usage of ImageState::open flag parameter Signed-off-by: Jason Dillaman --- diff --git a/src/librbd/api/Group.cc b/src/librbd/api/Group.cc index 1d9f6a3434d96..cfd9d86e37ee4 100644 --- a/src/librbd/api/Group.cc +++ b/src/librbd/api/Group.cc @@ -235,7 +235,7 @@ int group_snap_remove_by_record(librados::IoCtx& group_ioctx, C_SaferCond* on_finish = new C_SaferCond; - image_ctx->state->open(false, on_finish); + image_ctx->state->open(0, on_finish); ictxs.push_back(image_ctx); on_finishes.push_back(on_finish); @@ -787,7 +787,7 @@ int Group::snap_create(librados::IoCtx& group_ioctx, C_SaferCond* on_finish = new C_SaferCond; - image_ctx->state->open(false, on_finish); + image_ctx->state->open(0, on_finish); ictxs.push_back(image_ctx); on_finishes.push_back(on_finish); diff --git a/src/librbd/api/Image.cc b/src/librbd/api/Image.cc index 877027cdef03e..2759992113429 100644 --- a/src/librbd/api/Image.cc +++ b/src/librbd/api/Image.cc @@ -264,7 +264,7 @@ int Image::deep_copy(I *src, librados::IoCtx& dest_md_ctx, ImageCtx *dest = new librbd::ImageCtx(destname, "", NULL, dest_md_ctx, false); - r = dest->state->open(false); + r = dest->state->open(0); if (r < 0) { lderr(cct) << "failed to read newly created header" << dendl; return r;