]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't export dirfrag to stopping mds
authorYan, Zheng <zyan@redhat.com>
Tue, 20 Jun 2017 09:38:18 +0000 (17:38 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 20 Jun 2017 09:38:18 +0000 (17:38 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Migrator.cc

index c3f807156014b06f3d8fed2fbfd440675cea9073..207e747f43a3d50706752f94948c93979f87f420 100644 (file)
@@ -781,6 +781,10 @@ void Migrator::export_dir(CDir *dir, mds_rank_t dest)
     dout(7) << "read-only FS, no exports for now" << dendl;
     return;
   }
+  if (!mds->mdsmap->is_active(dest)) {
+    dout(7) << "dest not active, no exports for now" << dendl;
+    return;
+  }
   if (mds->is_cluster_degraded()) {
     dout(7) << "cluster degraded, no exports for now" << dendl;
     return;