mirror of
https://github.com/ceph/ceph
synced 2025-01-31 07:22:56 +00:00
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:
parent
d9d7147339
commit
3b13d3dcbc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user