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: v10.2.3~42^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=429e9c03f3f47e3804f54cac380db0add18584f2;p=ceph.git rgw: aws4: fix buffer sharing issue with chunked uploads Signed-off-by: Javier M. Mellid (cherry picked from commit dd9f53115a452e1e4268a1036f8fb69f9c1b86f7) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 5b19942d871..688b285fd4b 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2431,13 +2431,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