]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix wrong etag calculation during POST on S3 bucket.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 21 Sep 2015 18:32:29 +0000 (20:32 +0200)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 9 Oct 2015 20:34:05 +0000 (13:34 -0700)
Fixes: #11241
Backport: infernalis, hammer, firefly
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 742906ab5ee644d5932570bf95342697b673a498)

src/rgw/rgw_op.cc

index ff84aba0b064e14812225a03918ad5fea5a60685..fb4b6bb5b226202402c8b863b1c3da3e61ec731a 100644 (file)
@@ -2122,6 +2122,7 @@ void RGWPostObj::execute()
     goto done;
   }
 
+  processor->complete_hash(&hash);
   hash.Final(m);
   buf_to_hex(m, CEPH_CRYPTO_MD5_DIGESTSIZE, calc_md5);