mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
Merge pull request #6014 from athanatos/wip-13108
Revert "osd: purge the object from the cache when proxying and not pr… Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
e664547c22
@ -2011,15 +2011,10 @@ bool ReplicatedPG::maybe_handle_cache(OpRequestRef op,
|
||||
}
|
||||
|
||||
// Promote too?
|
||||
bool promoting = false;
|
||||
if (!op->need_skip_promote()) {
|
||||
promoting = maybe_promote(obc, missing_oid, oloc, in_hit_set,
|
||||
pool.info.min_write_recency_for_promote,
|
||||
OpRequestRef());
|
||||
}
|
||||
// purge the object in the cache if not promoting
|
||||
if (!promoting) {
|
||||
object_contexts.purge(obc->obs.oi.soid);
|
||||
maybe_promote(obc, missing_oid, oloc, in_hit_set,
|
||||
pool.info.min_write_recency_for_promote,
|
||||
OpRequestRef());
|
||||
}
|
||||
} else {
|
||||
if (can_proxy_read)
|
||||
|
Loading…
Reference in New Issue
Block a user