]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
MDSMonitor.cc: fix mdsmap.<namespace> subscriptions 10103/head
authorYan, Zheng <zyan@redhat.com>
Wed, 25 May 2016 10:33:49 +0000 (18:33 +0800)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Sat, 2 Jul 2016 07:59:43 +0000 (00:59 -0700)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 8f09dd15cb07597c57d0a6ae981f15a47de11bb9)

src/mon/MDSMonitor.cc

index 9d72a0f9ad618c741b3dd8247436c023b8bd86a1..44172324e2ad8bd236d5bd8ac626f4c5a09b5cbf 100644 (file)
@@ -2414,22 +2414,22 @@ void MDSMonitor::check_subs()
 {
   std::list<std::string> types;
 
-  // Subscriptions may be to "fsmap" (MDS and legacy clients),
-  // "fsmap.<namespace>", or to "fsmap" for the full state of all
+  // Subscriptions may be to "mdsmap" (MDS and legacy clients),
+  // "mdsmap.<namespace>", or to "fsmap" for the full state of all
   // filesystems.  Build a list of all the types we service
   // subscriptions for.
-  types.push_back("mdsmap");
   types.push_back("fsmap");
+  types.push_back("mdsmap");
   for (const auto &i : fsmap.filesystems) {
     auto fscid = i.first;
     std::ostringstream oss;
-    oss << "fsmap." << fscid;
+    oss << "mdsmap." << fscid;
     types.push_back(oss.str());
   }
 
   for (const auto &type : types) {
     if (mon->session_map.subs.count(type) == 0)
-      return;
+      continue;
     xlist<Subscription*>::iterator p = mon->session_map.subs[type]->begin();
     while (!p.end()) {
       Subscription *sub = *p;