]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set log_data_change to true during link olh only in 55627/head
authorShilpa Jagannath <smanjara@redhat.com>
Sat, 17 Feb 2024 05:09:07 +0000 (00:09 -0500)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 20 Feb 2024 22:26:30 +0000 (17:26 -0500)
multisite config

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index 7925cddf86fc1fc88f1391552cb78feb985e58bd..8837dd56b920c45996ce9775f594a42f2937ab3e 100644 (file)
@@ -3263,7 +3263,8 @@ int RGWRados::Object::Write::_do_write_meta(uint64_t size, uint64_t accounted_si
   state = NULL;
 
   if (versioned_op && meta.olh_epoch) {
-    r = store->set_olh(rctx.dpp, target->get_ctx(), target->get_bucket_info(), obj, false, NULL, *meta.olh_epoch, real_time(), false, rctx.y, meta.zones_trace, log_op);
+    bool add_log = log_op && store->svc.zone->need_to_log_data();
+    r = store->set_olh(rctx.dpp, target->get_ctx(), target->get_bucket_info(), obj, false, NULL, *meta.olh_epoch, real_time(), false, rctx.y, meta.zones_trace, add_log);
     if (r < 0) {
       return r;
     }