]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix RadosGW hang during multi-chunk upload of AWSv4.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 25 Apr 2017 10:22:54 +0000 (12:22 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 25 Apr 2017 10:28:32 +0000 (12:28 +0200)
Fixes: http://tracker.ceph.com/issues/19754
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_op.cc

index 465f1e82b2d83966edcb09978c4e024db127acb3..d6dfb6506a415bba8f784e085b0f33eeef8fde74 100644 (file)
@@ -3027,7 +3027,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();