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

src/rgw/rgw_op.cc

index e2d74d9cedd7257534e3e250dd4883f25e48578f..63c36db00e9b48692850e73b96485256ae6c01be 100644 (file)
@@ -6712,6 +6712,9 @@ void RGWCompleteMultipart::complete()
       ldpp_dout(this, 0) << "WARNING: failed to unlock " << serializer->oid << dendl;
     }
   }
+
+  etag = s->object->get_attrs()[RGW_ATTR_ETAG].to_str();
+
   send_response();
 }