Signed-off-by: Samuel Just <sjust@redhat.com>
return false;
}
+ if (!obc->get_write(OpRequestRef())) {
+ dout(20) << __func__ << " skip (cannot get lock) " << obc->obs.oi << dendl;
+ return false;
+ }
+
dout(10) << __func__ << " evicting " << obc->obs.oi << dendl;
RepGather *repop = simple_repop_create(obc);
OpContext *ctx = repop->ctx;
+ ctx->lock_to_release = OpContext::W_LOCK;
ctx->at_version = get_next_version();
assert(ctx->new_obs.exists);
int r = _delete_oid(ctx, true);