straydir can not get splitted (for now at least)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit
959e63c1f88b6ce6b2492cfb98e5875d928558e4)
Conflicts:
src/mds/MDBalancer.cc
- finesse split/merge conditional expression
{
// split/merge
if (g_conf->mds_bal_frag && bal_fragment_interval > 0 &&
- dir->is_auth() && !dir->inode->is_base()) { // not root/base (for now at least)
+ dir->is_auth() &&
+ !dir->inode->is_base() && // not root/base (for now at least)
+ !dir->inode->is_stray()) { // not straydir
// split
if (g_conf->mds_bal_split_size > 0 &&