From 710c4a245c040209965dc58edd3e866b2cbc7325 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Mon, 16 May 2022 16:06:05 +0900 Subject: [PATCH] osd: do not make the manifest object dirty after tier-evict 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 --- src/osd/PrimaryLogPG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 1f23145570c..145d02365f7 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -7430,6 +7430,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& ops) oi.clear_data_digest(); ctx->delta_stats.num_wr++; ctx->cache_operation = true; + ctx->undirty = true; osd->logger->inc(l_osd_tier_evict); } -- 2.39.5