]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Solving the issue of not populating etag in Multipart update result 51446/head
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:37:53 +0000 (21:37 +0700)
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
(cherry picked from commit 2b13cd90951891bf9767f168653a896d94ca056c)

src/rgw/rgw_op.cc

index 09cfa355759c2dc991605d46cd7ed94722512d4a..56ed7f2161575053e5eef9dae88ac23df1fd283f 100644 (file)
@@ -6464,6 +6464,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();
 }