From 4cb57a762192e61a388d61e722b6deff89f5487a Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Fri, 1 Oct 2021 10:29:32 +0900 Subject: [PATCH] osd: do not promote objects if op is is_dirty manifest object contains object_info_t even if the object is flushed, so OSD can reply the result of is_dirty. Signed-off-by: Myoungwon Oh --- src/osd/PrimaryLogPG.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 6b1a3e52f45b..fb7ecae2ef80 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -2535,7 +2535,8 @@ PrimaryLogPG::cache_result_t PrimaryLogPG::maybe_handle_manifest_detail( op.op == CEPH_OSD_OP_UNSET_MANIFEST || op.op == CEPH_OSD_OP_TIER_PROMOTE || op.op == CEPH_OSD_OP_TIER_FLUSH || - op.op == CEPH_OSD_OP_TIER_EVICT) { + op.op == CEPH_OSD_OP_TIER_EVICT || + op.op == CEPH_OSD_OP_ISDIRTY) { return cache_result_t::NOOP; } } -- 2.47.3