mirror of
https://github.com/ceph/ceph
synced 2025-02-16 07:17:21 +00:00
mds: update version when bring stale rstat back up to date
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
a74054d11d
commit
bdf3bc5ef2
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user