From 9a517555dd4326ce533ce059b8a1c872b718d2f3 Mon Sep 17 00:00:00 2001 From: Christophe Angeli Date: Tue, 28 Feb 2017 09:53:05 +0100 Subject: [PATCH] rebuild token map on new node --- src/control_connection.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/control_connection.cpp b/src/control_connection.cpp index bbddffa8f..b630c7317 100644 --- a/src/control_connection.cpp +++ b/src/control_connection.cpp @@ -279,11 +279,7 @@ void ControlConnection::on_event(EventResponse* response) { switch (response->topology_change()) { case EventResponse::NEW_NODE: { LOG_INFO("New node %s added", address_str.c_str()); - SharedRefPtr host = session_->get_host(response->affected_node()); - if (!host) { - host = session_->add_host(response->affected_node()); - refresh_node_info(host, true, true); - } + query_meta_hosts(); break; }