]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix version check on resyncing stale rstat in predirty_journal_parents
authorSage Weil <sage@newdream.net>
Fri, 5 Nov 2010 22:24:53 +0000 (15:24 -0700)
committerSage Weil <sage@newdream.net>
Fri, 5 Nov 2010 22:24:53 +0000 (15:24 -0700)
We're resyncing rstat, so check the rstat version (not fragstat!)

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc

index fb7e33db6cce8a37bbcfdd52b60da58568bcae99..c6b9e0b2a48133253548f40ca8dec34995880517 100644 (file)
@@ -1880,7 +1880,7 @@ void MDCache::predirty_journal_parents(Mutation *mut, EMetaBlob *blob,
 
       // first, if the frag is stale, bring it back in sync.
       // this matches the logic in CInode::finish_scatter_gather_update();
-      if (pf->accounted_fragstat.version != pi->dirstat.version) {
+      if (pf->accounted_rstat.version != pi->rstat.version) {
        dout(10) << " resyncing stale rstat (rstat->accounted_rstat)" << dendl;
        pf->accounted_rstat = pf->rstat;
        parent->dirty_old_rstat.clear();