]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not make the manifest object dirty after tier-evict 46101/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 16 May 2022 07:06:05 +0000 (16:06 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 28 Jul 2022 01:22:48 +0000 (10:22 +0900)
Once current tier-evict is called, the object become dirty even
though there is no changes before---tier-evict just modifies chunks'
state to missing, so that no need to change object's state to dirty.

This is not intened hehavior. Therefore, this commits adds a line
to prevent being dirty.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc

index 1f23145570c7ca82ef3dceea1a6899280c0ec561..145d02365f7025a6307d971c87420aa5eda8d252 100644 (file)
@@ -7430,6 +7430,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
        oi.clear_data_digest();
        ctx->delta_stats.num_wr++;
        ctx->cache_operation = true;
+       ctx->undirty = true;
        osd->logger->inc(l_osd_tier_evict);
       }