From: Sage Weil Date: Tue, 12 Oct 2010 04:13:00 +0000 (-0700) Subject: mds: bump dirstat.version during link/unlink/mtime update X-Git-Tag: v0.22~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa2c371f6e27856829bdd12935d575152d0cf300;p=ceph.git mds: bump dirstat.version during link/unlink/mtime update Signed-off-by: Sage Weil --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 691bb4ec3e23..80b8f9c09d7b 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -1845,6 +1845,7 @@ void MDCache::predirty_journal_parents(Mutation *mut, EMetaBlob *blob, dout(20) << "predirty_journal_parents take_diff " << pf->fragstat << dendl; dout(20) << "predirty_journal_parents - " << pf->accounted_fragstat << dendl; bool touched_mtime = false; + pi->dirstat.version++; pi->dirstat.take_diff(pf->fragstat, pf->accounted_fragstat, touched_mtime); if (touched_mtime) pi->mtime = pi->ctime = pi->dirstat.mtime;