]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Solving the issue of not populating etag in Multipart update result
authorAli Masarwa <ali.saed.masarwa@gmail.com>
Mon, 20 Mar 2023 16:42:30 +0000 (18:42 +0200)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 11 May 2023 14:38:42 +0000 (21:38 +0700)
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
(cherry picked from commit 2b13cd90951891bf9767f168653a896d94ca056c)

src/rgw/rgw_op.cc

index bfe86c52d790d017ddc47a572e009cb3771b7c44..991f5e50d50d3d63b1d28d780601f67424edd5b4 100644 (file)
@@ -6535,6 +6535,9 @@ void RGWCompleteMultipart::complete()
       ldpp_dout(this, 0) << "WARNING: failed to unlock " << *serializer.get() << dendl;
     }
   }
+
+  etag = s->object->get_attrs()[RGW_ATTR_ETAG].to_str();
+
   send_response();
 }