Merge pull request #12994 from ukernel/wip-18487

mds: add authority check for delay dirfrag split

Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2017-01-20 15:28:12 +01:00 committed by GitHub
commit abb2608b6b

View File

@ -400,6 +400,10 @@ void MDBalancer::queue_split(const CDir *dir, bool fast)
dout(10) << "drop split on " << frag << " because not in cache" << dendl;
return;
}
if (!split_dir->is_auth()) {
dout(10) << "drop split on " << frag << " because non-auth" << dendl;
return;
}
// Pass on to MDCache: note that the split might still not
// happen if the checks in MDCache::can_fragment fail.