]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: bump dirstat.version during link/unlink/mtime update
authorSage Weil <sage@newdream.net>
Tue, 12 Oct 2010 04:13:00 +0000 (21:13 -0700)
committerSage Weil <sage@newdream.net>
Tue, 12 Oct 2010 04:13:00 +0000 (21:13 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc

index 691bb4ec3e23c2acb4b8b6a763619be6cfce87b1..80b8f9c09d7bb66c4fd6398bf38a11f090352511 100644 (file)
@@ -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;