]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/mon: use mon with only v2 address
authorKefu Chai <kchai@redhat.com>
Tue, 28 Jul 2020 12:32:00 +0000 (20:32 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 28 Jul 2020 12:46:47 +0000 (20:46 +0800)
crimson msgr supports v2 protocol now, so we can connect to monitor
which only provides v2 addresses.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc

index 403774b03f920565a3ea79a234e75d6eeeb775e0..179a16d7a07df02ac953a14c629adf549c14b523 100644 (file)
@@ -903,10 +903,6 @@ std::vector<unsigned> Client::get_random_mons(unsigned n) const
   }
   vector<unsigned> ranks;
   for (auto [name, info] : monmap.mon_info) {
-    // TODO: #msgr-v2
-    if (info.public_addrs.legacy_addr().is_blank_ip()) {
-      continue;
-    }
     if (info.priority == min_priority) {
       ranks.push_back(monmap.get_rank(name));
     }