Fixes: http://tracker.ceph.com/issues/21248
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
4a75ee43d3b108a9593a010160479fd62884eda8)
Conflicts:
src/librbd/internal.cc (retain redundant "delete ictx" that has been
dropped in master)
ImageCtx *ictx = new ImageCtx(srcname, "", "", io_ctx, false);
int r = ictx->state->open(false);
if (r < 0) {
- lderr(ictx->cct) << "error opening source image: " << cpp_strerror(r)
- << dendl;
+ lderr(cct) << "error opening source image: " << cpp_strerror(r) << dendl;
delete ictx;
return r;
}