There is an assert(dest != mds->get_nodeid()) at very beginning of
the function. There also is a check for if 'dest' mds is active.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit
7afe92f644c97ae1282837bc75cde0b4a8054d0f)
dout(7) << "already exporting" << dendl;
return;
}
- if (dest == mds->get_nodeid() || !mds->mdsmap->is_up(dest)) {
- dout(7) << "cannot export: dest " << dest << " is me or is not active" << dendl;
- return;
- }
if (g_conf->mds_thrash_exports) {
// create random subtree bound (which will not be exported)