]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/mgr: connect mgr with v2 protocol
authorKefu Chai <kchai@redhat.com>
Thu, 25 Apr 2019 12:18:21 +0000 (20:18 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 16:12:57 +0000 (00:12 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mgr/client.cc

index fd617543423b8675537a8c8428b6fb65b31fe200..fd8e917d0c87bf3ae6ae88f092b1eaceab305fdc 100644 (file)
@@ -78,7 +78,7 @@ seastar::future<> Client::reconnect()
       logger().warn("No active mgr available yet");
       return seastar::now();
     }
-    auto peer = mgrmap.get_active_addrs().legacy_addr();
+    auto peer = mgrmap.get_active_addrs().front();
     return msgr.connect(peer, CEPH_ENTITY_TYPE_MGR).then(
       [this](auto xconn) {
         conn = xconn->release();