mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
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:
commit
50b45ccfa8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user