diff options
author | Jianpeng Ma <jianpeng.ma@intel.com> | 2015-03-30 07:17:40 -0700 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2015-03-30 10:41:58 -0700 |
commit | 8db4056ba84b771ef3e8ac2e5eb305edf94b0b30 (patch) | |
tree | f725cddaf8ab21050a7cb33992d5fcf521cedc0e | |
parent | 6f4936ee96e595cb05a18444e6572e334e98de44 (diff) | |
download | ceph-8db4056ba84b771ef3e8ac2e5eb305edf94b0b30.tar.gz |
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 <jianpeng.ma@intel.com>
[Sage: simplified]
Signed-off-by: Sage Weil <sage@redhat.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index b705ae22f3a..3e5d88f4658 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); |