mds: update version when bring stale rstat back up to date

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2010-11-06 09:38:15 -07:00
parent a74054d11d
commit bdf3bc5ef2

View 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();
}