]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not update mtime when recording digest
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 30 Mar 2015 14:17:40 +0000 (07:17 -0700)
committerSage Weil <sage@redhat.com>
Mon, 30 Mar 2015 17:41:58 +0000 (10:41 -0700)
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 <jianpeng.ma@intel.com>
[Sage: simplified]
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc

index b705ae22f3a08ac276dddd110744fa906fd75ebe..3e5d88f4658ccdf80948f80ef3e3270eff4880ce 100644 (file)
@@ -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);