mirror of
https://github.com/ceph/ceph
synced 2025-03-05 07:48:55 +00:00
Merge pull request #25310 from cbodley/wip-37448
rgw: data sync accepts ERR_PRECONDITION_FAILED on remove_object() Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
c4cb665708
@ -2583,6 +2583,10 @@ public:
|
||||
}
|
||||
tn->log(10, SSTR("removing obj: " << sync_env->source_zone << "/" << bucket_info->bucket << "/" << key << "[" << versioned_epoch.value_or(0) << "]"));
|
||||
call(data_sync_module->remove_object(sync_env, *bucket_info, key, timestamp, versioned, versioned_epoch.value_or(0), &zones_trace));
|
||||
// our copy of the object is more recent, continue as if it succeeded
|
||||
if (retcode == -ERR_PRECONDITION_FAILED) {
|
||||
retcode = 0;
|
||||
}
|
||||
} else if (op == CLS_RGW_OP_LINK_OLH_DM) {
|
||||
set_status("creating delete marker");
|
||||
tn->log(10, SSTR("creating delete marker: obj: " << sync_env->source_zone << "/" << bucket_info->bucket << "/" << key << "[" << versioned_epoch.value_or(0) << "]"));
|
||||
|
Loading…
Reference in New Issue
Block a user