r = io_ctx.operate(oid, &op);
bool removed = (r >= 0);
- if ((r >= 0 || r == -ENOENT) && bucket.marker.size()) {
+ if (r >= 0 || r == -ENOENT) {
uint64_t epoch = io_ctx.get_last_version();
r = complete_update_index_del(bucket, obj.object, tag, epoch);
} else {
utime_t& ut, string& etag, string& content_type, bufferlist *acl_bl, RGWObjCategory category,
list<string> *remove_objs);
int complete_update_index_del(rgw_bucket& bucket, string& oid, string& tag, uint64_t epoch) {
+ if (bucket_is_system(bucket))
+ return 0;
+
return cls_obj_complete_del(bucket, tag, epoch, oid);
}
int complete_update_index_cancel(rgw_bucket& bucket, string& oid, string& tag) {
+ if (bucket_is_system(bucket))
+ return 0;
+
return cls_obj_complete_cancel(bucket, tag, oid);
}