if (!diri->is_auth() && !diri->is_base() &&
dir->get_num_head_items() == 0) {
if (dir->state_test(CDir::STATE_EXPORTING) ||
- dir->is_freezing() || dir->is_frozen() || !mds->is_active())
+ !(mds->is_active() || mds->is_stopping()) ||
+ dir->is_freezing() || dir->is_frozen())
continue;
migrator->export_empty_import(dir);
assert(dir->is_auth());
assert(dest != mds->get_nodeid());
+ if (!(mds->is_active() || mds->is_stopping())) {
+ dout(7) << "i'm not active, no exports for now" << dendl;
+ return;
+ }
if (mds->mdcache->is_readonly()) {
dout(7) << "read-only FS, no exports for now" << dendl;
return;
//ceph_abort();
return;
}
- if (!mds->is_active()) {
- dout(7) << "i'm not active, no exports for now" << dendl;
- return;
- }
if (!dir->inode->is_base() && dir->inode->get_projected_parent_dir()->inode->is_stray() &&
dir->inode->get_projected_parent_dir()->get_parent_dir()->ino() != MDS_INO_MDSDIR(dest)) {