]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix RadosGW hang during multi-chunk upload of AWSv4. 14939/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 25 Apr 2017 10:22:54 +0000 (12:22 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 3 Jul 2017 11:29:36 +0000 (07:29 -0400)
Fixes: http://tracker.ceph.com/issues/19754
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 72c1e2e351d984d0425a20f2c772951cbc36f13e)

src/rgw/rgw_op.cc

index 2731450d8ee8e7d632aef069310492c8d5eec781..0e53796bc00de4de0f831bbdeb623c9c443866ac 100644 (file)
@@ -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();