Makes sure recovering MDS get uptodate fragstat/rstat for subtree root
dirfrags. it's required the codes that fix-up inode's fragstat/rstat.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
dirs_to_share.insert(dir);
unsigned nonce = dir->add_replica(from);
dout(10) << " have " << p->frag << " -> " << fg << " " << *dir << dendl;
- if (ack)
+ if (ack) {
ack->add_strong_dirfrag(dir->dirfrag(), nonce, dir->dir_rep);
+ ack->add_dirfrag_base(dir);
+ }
}
}
}