]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: return an etag header for all successful complete-multipart
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 13 Apr 2026 21:49:40 +0000 (17:49 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Mon, 13 Apr 2026 21:49:40 +0000 (17:49 -0400)
Don't return an empty etag header on an idempotent replay of a
successful complete-multipart-upload.

Fixes: https://tracker.ceph.com/issues/75999
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_op.cc

index bd3cfe2a4e2d60b8f198d4d033b2761140cc8125..e9245942989014173a7c2fce34c737bbcbbd9071 100644 (file)
@@ -7662,7 +7662,10 @@ bool RGWCompleteMultipart::check_previously_completed(const RGWMultiCompleteUplo
                                   << oetag << ", re-calculated etag:" << final_etag_str << dendl;
     return false;
   }
-  ldpp_dout(this, 5) << __func__ << "() object etag and re-calculated etag match, etag: " << oetag << dendl;
+  ldpp_dout(this, 5) << __func__
+                     << "() object etag and re-calculated etag match, etag: "
+                     << oetag << dendl;
+  etag = oetag;
   return true;
 }