]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: aws4: fix buffer sharing issue with chunked uploads 9689/head
authorJavier M. Mellid <jmunhoz@igalia.com>
Tue, 14 Jun 2016 09:04:23 +0000 (11:04 +0200)
committerJavier M. Mellid <jmunhoz@igalia.com>
Tue, 14 Jun 2016 09:15:24 +0000 (11:15 +0200)
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
src/rgw/rgw_op.cc

index 5ff733028a061d4f9a9796834df444bb850d19c0..8e81cca1a2ef878cafd03fe58a40e29959212970 100644 (file)
@@ -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