From: Jianpeng Ma Date: Mon, 30 Mar 2015 14:17:40 +0000 (-0700) Subject: osd: do not update mtime when recording digest X-Git-Tag: v0.94~7^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8db4056ba84b771ef3e8ac2e5eb305edf94b0b30;p=ceph.git osd: do not update mtime when recording digest The user mtime and local_mtime are normally set in finish_ctx based on the value of ctx->mtime; clear that to avoid this update. Signed-off-by: Jianpeng Ma [Sage: simplified] Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index b705ae22f3a0..3e5d88f4658c 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -11343,6 +11343,7 @@ void ReplicatedPG::_scrub( RepGather *repop = simple_repop_create(obc); OpContext *ctx = repop->ctx; ctx->at_version = get_next_version(); + ctx->mtime = utime_t(); // do not update mtime ctx->new_obs.oi.set_data_digest(p->second.first); ctx->new_obs.oi.set_omap_digest(p->second.second); finish_ctx(ctx, pg_log_entry_t::MODIFY, true, true);