]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon:don't check for old-style monitor section name
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 15 Apr 2011 21:40:49 +0000 (14:40 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 15 Apr 2011 21:40:49 +0000 (14:40 -0700)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/mon/MonClient.cc

index 7a562956ab9272a60c84bf2aacc97b18b452f9c4..ef96a700929202560e70ff2cbe3b5366325280b3 100644 (file)
@@ -123,9 +123,6 @@ int MonClient::build_initial_monmap()
     if ((s->substr(0, 4) == "mon.") && (s->size() > 4)) {
       mon_names.push_back(s->substr(4));
     }
-    else if ((s->substr(0, 3) == "mon") && (s->size() > 3)) {
-      mon_names.push_back(s->substr(3));
-    }
   }
 
   // Find an address for each monitor in the config file.