Merge pull request #7593 from ifed01/wip-no-blockedpromote-return-fix

osd: fix return value from maybe_handle_cache_detail()

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-02-12 15:39:58 -05:00
commit 50b45ccfa8

View File

@ -2160,11 +2160,12 @@ ReplicatedPG::cache_result_t ReplicatedPG::maybe_handle_cache_detail(
}
// Promote too?
if (!op->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 {