]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not promote objects if op is is_dirty 43380/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 1 Oct 2021 01:29:32 +0000 (10:29 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 1 Oct 2021 01:29:32 +0000 (10:29 +0900)
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 <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc

index 6b1a3e52f45b6b8cd93d7cdd4e52798d328240e5..fb7ecae2ef803b2a934125eb698e3133dc8b616d 100644 (file)
@@ -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;
     }
   }