From bdf3bc5ef2c51c626d44d1792be44399b0bebff2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 6 Nov 2010 09:38:15 -0700 Subject: [PATCH] mds: update version when bring stale rstat back up to date Signed-off-by: Sage Weil --- src/mds/MDCache.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 3f6bb08cbeb79..2088e8f9cce41 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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(); } -- 2.39.5