maybe_handle_cache(op, write_ordered, obc, r, missing_oid, false, in_hit_set))
return;
- if (r) {
+ if (r && (r != -ENOENT || !obc)) {
+ dout(20) << __func__ << "find_object_context got error " << r << dendl;
osd->reply_op_error(op, r);
return;
}
return;
}
+ if (r) {
+ dout(20) << __func__ << " returned an error: " << r << dendl;
+ close_op_ctx(ctx, r);
+ osd->reply_op_error(op, r);
+ return;
+ }
+
if (m->get_flags() & CEPH_OSD_FLAG_IGNORE_CACHE) {
ctx->ignore_cache = true;
}