rgw: aws4: fix buffer sharing issue with chunked uploads

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
This commit is contained in:
Javier M. Mellid 2016-06-14 11:04:23 +02:00
parent 780925c4a2
commit dd9f53115a

View 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