From: Yan, Zheng Date: Tue, 20 Jun 2017 09:38:18 +0000 (+0800) Subject: mds: don't export dirfrag to stopping mds X-Git-Tag: v12.1.0~5^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8f9261fa98e3d48b07bf569d6698e9944f673ba4;p=ceph.git mds: don't export dirfrag to stopping mds Signed-off-by: "Yan, Zheng" --- diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index c3f807156014b..207e747f43a3d 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -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;