From ee1fafa3a6023a637496762782fec69e02139d36 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Mon, 8 Feb 2016 15:46:51 +0300 Subject: [PATCH] OSD/ReplicatePG: Fixes return value from maybe_handle_cache_detail() depending on maybe_promote() result Signed-off-by: Igor Fedotov need_skip_promote()) { - maybe_promote(obc, missing_oid, oloc, in_hit_set, + if (!op->need_skip_promote() && + maybe_promote(obc, missing_oid, oloc, in_hit_set, pool.info.min_write_recency_for_promote, OpRequestRef(), - promote_obc); + promote_obc)) { + return cache_result_t::BLOCKED_PROMOTE; } return cache_result_t::HANDLED_PROXY; } else {