rgw_obj obj(bucket, (*it).key.name);
obj.set_instance((*it).key.instance);
- ret = store->get_obj_state(&obj_ctx, obj, &astate, NULL);
+ ret = store->get_obj_state(&obj_ctx, obj, &astate, false);
if (ret == -ENOENT) {
dout(1) << "WARNING: cannot find obj state for obj " << obj.get_object() << dendl;
continue;
RGWObjState *astate = NULL;
RGWObjectCtx rctx(this);
- r = get_obj_state(&rctx, obj, &astate, NULL);
+ r = get_obj_state(&rctx, obj, &astate, false);
if (r < 0)
return r;
if (copy_if_newer) {
/* need to get mtime for destination */
- ret = get_obj_state(&obj_ctx, dest_obj, &dest_state, NULL);
+ ret = get_obj_state(&obj_ctx, dest_obj, &dest_state, false);
if (ret < 0)
goto set_err_state;
if (copy_if_newer && cb.is_canceled()) {
ldout(cct, 20) << "raced with another write of obj: " << dest_obj << dendl;
obj_ctx.invalidate(dest_obj); /* object was overwritten */
- ret = get_obj_state(&obj_ctx, dest_obj, &dest_state, NULL);
+ ret = get_obj_state(&obj_ctx, dest_obj, &dest_state, false);
if (ret < 0) {
ldout(cct, 0) << "ERROR: " << __func__ << ": get_err_state() returned ret=" << ret << dendl;
goto set_err_state;
RGWObjState *state = NULL;
- int r = get_obj_state(rctx, obj, &state, NULL);
+ int r = get_obj_state(rctx, obj, &state, false);
if (r < 0)
return r;
if (!rctx)
return 0;
- int r = get_obj_state(rctx, obj, pstate, NULL);
+ int r = get_obj_state(rctx, obj, pstate, false);
if (r < 0)
return r;
bool reading_from_head = true;
RGWObjState *astate = NULL;
- int r = get_obj_state(&obj_ctx, obj, &astate, NULL);
+ int r = get_obj_state(&obj_ctx, obj, &astate, false);
if (r < 0) {
return r;
}
RGWObjState *astate = NULL;
RGWObjectCtx rctx(this);
- int r = get_obj_state(&rctx, obj, &astate, NULL);
+ int r = get_obj_state(&rctx, obj, &astate, false);
if (r < 0)
return r;