Fixes: https://tracker.ceph.com/issues/47240
Signed-off-by: Casey Bodley <cbodley@redhat.com>
return ret;
}
- if (!obj.is_delete_marker()) {
- olh.update_log(CLS_RGW_OLH_OP_REMOVE_INSTANCE, op.op_tag, op.key, false, op.olh_epoch);
+ if (obj.is_delete_marker()) {
+ return 0;
}
- return 0;
+ olh.update_log(CLS_RGW_OLH_OP_REMOVE_INSTANCE, op.op_tag, op.key, false, op.olh_epoch);
+ return olh.write();
}
rgw_bucket_olh_entry& olh_entry = olh.get_entry();