]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: respect standby_for_fscid when choosing standby replay mds 22603/head
authorYan, Zheng <zyan@redhat.com>
Thu, 19 Apr 2018 02:44:11 +0000 (10:44 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 18 Jun 2018 19:19:31 +0000 (12:19 -0700)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit e3a38e9e89577f54c8a52fa32b3e0d14fe8e7088)

src/mon/MDSMonitor.cc

index 6db751d50b6bdca0450587ec2c42944eecc0365e..21d939331f9404cfcfcda710c4129b5e294c34b4 100644 (file)
@@ -2226,6 +2226,10 @@ bool MDSMonitor::maybe_promote_standby(std::shared_ptr<Filesystem> &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;