diff --git a/locator/topology.cc b/locator/topology.cc index b6ffa83585..cfb6a43307 100644 --- a/locator/topology.cc +++ b/locator/topology.cc @@ -141,6 +141,9 @@ const node* topology::add_node(host_id id, const inet_address& ep, const endpoin } bool topology::is_configured_this_node(const node& n) const { + if (_cfg.this_host_id && n.host_id()) { // Selection by host_id + return _cfg.this_host_id == n.host_id(); + } if (_cfg.this_endpoint != inet_address()) { // Selection by endpoint return _cfg.this_endpoint == n.endpoint();; }