OpRequestRef op,
bool write_ordered,
ObjectContextRef obc,
- int r, const hobject_t& missing_oid,
+ int r, hobject_t missing_oid,
bool must_promote,
bool in_hit_set,
ObjectContextRef *promote_obc)
osd->logger->inc(l_osd_op_cache_hit);
return cache_result_t::NOOP;
}
-
+
+ if (missing_oid == hobject_t() && obc.get()) {
+ missing_oid = obc->obs.oi.soid;
+ }
+
MOSDOp *m = static_cast<MOSDOp*>(op->get_req());
const object_locator_t& oloc = m->get_object_locator();
cache_result_t maybe_handle_cache_detail(OpRequestRef op,
bool write_ordered,
ObjectContextRef obc, int r,
- const hobject_t& missing_oid,
+ hobject_t missing_oid,
bool must_promote,
bool in_hit_set,
ObjectContextRef *promote_obc);