From: Javier M. Mellid Date: Tue, 14 Jun 2016 09:04:23 +0000 (+0200) Subject: rgw: aws4: fix buffer sharing issue with chunked uploads X-Git-Tag: v11.0.0~194^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd9f53115a452e1e4268a1036f8fb69f9c1b86f7;p=ceph.git rgw: aws4: fix buffer sharing issue with chunked uploads Signed-off-by: Javier M. Mellid --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 5ff733028a06..8e81cca1a2ef 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2647,13 +2647,11 @@ void RGWPutObj::execute() if (!len) break; - bufferlist data; + bufferlist &data = data_in; if (s->aws4_auth_streaming_mode) { /* use unwrapped data */ data = s->aws4_auth->bl; len = data.length(); - } else { - data = data_in; } /* do we need this operation to be synchronous? if we're dealing with an object with immutable