From: Yan, Zheng Date: Thu, 19 Apr 2018 02:44:11 +0000 (+0800) Subject: mon: respect standby_for_fscid when choosing standby replay mds X-Git-Tag: v13.1.0~136^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e3a38e9e89577f54c8a52fa32b3e0d14fe8e7088;p=ceph.git mon: respect standby_for_fscid when choosing standby replay mds Signed-off-by: "Yan, Zheng" --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 81989c2d76d7..ea8c978cb729 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -1970,6 +1970,10 @@ bool MDSMonitor::maybe_promote_standby(std::shared_ptr &fs) // check everyone for (const auto &p : pending.filesystems) { + if (info.standby_for_fscid != FS_CLUSTER_ID_NONE && + info.standby_for_fscid != p.first) + continue; + bool assigned = false; const auto &fs = p.second; const MDSMap &mds_map = fs->mds_map;