Skip to content

Commit 6cc1c2d

Browse files
author
Shilpa Jagannath
committed
rgw: set log_data_change to true during link olh only in
multisite config Signed-off-by: Shilpa Jagannath <[email protected]>
1 parent 0ed764e commit 6cc1c2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rgw/driver/rados/rgw_rados.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3263,7 +3263,8 @@ int RGWRados::Object::Write::_do_write_meta(uint64_t size, uint64_t accounted_si
32633263
state = NULL;
32643264

32653265
if (versioned_op && meta.olh_epoch) {
3266-
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);
3266+
bool add_log = log_op && store->svc.zone->need_to_log_data();
3267+
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);
32673268
if (r < 0) {
32683269
return r;
32693270
}

0 commit comments

Comments
 (0)