]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
MDSMonitor.cc: fix mdsmap.<namespace> subscriptions 9323/head
authorYan, Zheng <zyan@redhat.com>
Wed, 25 May 2016 10:33:49 +0000 (18:33 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 25 May 2016 12:14:07 +0000 (20:14 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mon/MDSMonitor.cc

index 504e3fb72b0900f52a189ad6bb5327a0a40d3ca6..bdb48a27bc115960d26faf2d72695bd500c0125a 100644 (file)
@@ -2411,22 +2411,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;