From: Radoslaw Zarzynski Date: Tue, 25 Apr 2017 10:22:54 +0000 (+0200) Subject: rgw: fix RadosGW hang during multi-chunk upload of AWSv4. X-Git-Tag: v11.2.1~88^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14939%2Fhead;p=ceph.git rgw: fix RadosGW hang during multi-chunk upload of AWSv4. Fixes: http://tracker.ceph.com/issues/19754 Signed-off-by: Radoslaw Zarzynski (cherry picked from commit 72c1e2e351d984d0425a20f2c772951cbc36f13e) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 2731450d8ee..0e53796bc00 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2991,7 +2991,7 @@ void RGWPutObj::execute() } bufferlist &data = data_in; - if (s->aws4_auth_streaming_mode) { + if (len && s->aws4_auth_streaming_mode) { /* use unwrapped data */ data = s->aws4_auth->bl; len = data.length();