mds: only export directory fragments in stray to their auth MDS

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
Yan, Zheng 2012-12-17 13:43:46 +08:00
parent d9d7147339
commit 3b13d3dcbc

View File

@ -642,12 +642,11 @@ void Migrator::export_dir(CDir *dir, int dest)
}
if (!dir->inode->is_base() && dir->get_parent_dir()->get_inode()->is_stray() &&
dir->get_parent_dir()->get_parent_dir()->ino() == MDS_INO_MDSDIR(mds->get_nodeid())) {
dir->get_parent_dir()->get_parent_dir()->ino() != MDS_INO_MDSDIR(dest)) {
dout(7) << "i won't export anything in stray" << dendl;
return;
}
if (dir->is_frozen() ||
dir->is_freezing()) {
dout(7) << " can't export, freezing|frozen. wait for other exports to finish first." << dendl;