]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: update version when bring stale rstat back up to date
authorSage Weil <sage@newdream.net>
Sat, 6 Nov 2010 16:38:15 +0000 (09:38 -0700)
committerSage Weil <sage@newdream.net>
Sat, 6 Nov 2010 16:38:15 +0000 (09:38 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc

index 3f6bb08cbeb795cb4f7a8b6585ddb167bd934bb1..2088e8f9cce4122988ccfccc67542fab2f591523 100644 (file)
@@ -1903,6 +1903,7 @@ void MDCache::predirty_journal_parents(Mutation *mut, EMetaBlob *blob,
       // this matches the logic in CInode::finish_scatter_gather_update();
       if (pf->accounted_rstat.version != pi->rstat.version) {
        dout(10) << " resyncing stale rstat (rstat->accounted_rstat)" << dendl;
+       pf->rstat.version = pi->rstat.version;
        pf->accounted_rstat = pf->rstat;
        parent->dirty_old_rstat.clear();
       }