if (r < 0)
return r;
+ ObjectWriteOperation op;
+
if (params.unmod_since > 0) {
time_t ctime = state->mtime;
if (ctime > params.unmod_since) {
return -ERR_PRECONDITION_FAILED;
}
+
+ /* only delete object if mtime is less than or equal to params.unmod_since */
+ store->cls_obj_check_mtime(op, utime_t(params.unmod_since, 0), CLS_RGW_CHECK_TIME_MTIME_LE);
}
uint64_t obj_size = state->size;
}
}
- ObjectWriteOperation op;
-
r = target->prepare_atomic_modification(op, false, NULL, NULL, NULL, true);
if (r < 0)
return r;