From 24aeca9c439474b079d23600d8d42c0af5d9ce5c Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 12 Aug 2014 15:24:26 -0700 Subject: [PATCH] ReplicatedPG::maybe_handle_cache: do not skip promote for write_ordered We cannot redirect a RW ordered read. Fixes: #9064 Introduced: 0ed3adc1e0a74bf9548d1d956aece11f019afee0 Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 1a83a632f6959..6250796ee0d2b 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1605,7 +1605,7 @@ bool ReplicatedPG::maybe_handle_cache(OpRequestRef op, if (!must_promote && can_skip_promote(op, obc)) { return false; } - if (op->may_write() || must_promote || !hit_set) { + if (op->may_write() || write_ordered || must_promote || !hit_set) { promote_object(op, obc, missing_oid); } else { switch (pool.info.min_read_recency_for_promote) { -- 2.39.5