]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove useless check in Migrator::export_dir 19360/head
authorYan, Zheng <zyan@redhat.com>
Wed, 22 Nov 2017 04:33:09 +0000 (12:33 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 6 Dec 2017 08:49:11 +0000 (16:49 +0800)
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)

src/mds/Migrator.cc

index 41fe12795139dc6bfea39233e5c0b17ba8083eff..8649d337786cb5006499e367e5229f2ca7304139 100644 (file)
@@ -820,10 +820,6 @@ void Migrator::export_dir(CDir *dir, mds_rank_t dest)
     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)