From: Willem Jan Withagen Date: Tue, 4 Feb 2020 11:19:43 +0000 (+0100) Subject: rbd-ggate: fix fallout from bufferlist.copy() change X-Git-Tag: v15.1.1~553^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2eafdbed4edb09ff981c9ce34c35397af36cf128;p=ceph.git rbd-ggate: fix fallout from bufferlist.copy() change fixes: #3281 Signed-off-by: Willem Jan Withagen --- diff --git a/src/tools/rbd_ggate/Driver.cc b/src/tools/rbd_ggate/Driver.cc index 752ef56f8cc12..80acfe00c5627 100644 --- a/src/tools/rbd_ggate/Driver.cc +++ b/src/tools/rbd_ggate/Driver.cc @@ -149,7 +149,7 @@ int Driver::send(Request *req) { ggate_drv_req_error(req->req) == 0) { ceph_assert(req->bl.length() == ggate_drv_req_length(req->req)); // TODO: avoid copying? - req->bl.copy(0, ggate_drv_req_length(req->req), + req->bl.begin().copy(ggate_drv_req_length(req->req), static_cast(ggate_drv_req_buf(req->req))); dout(20) << "copied resulting " << req->bl.length() << " bytes to " << ggate_drv_req_buf(req->req) << dendl;