diff --git a/locator/network_topology_strategy.cc b/locator/network_topology_strategy.cc index 547a61a4c3..dff0997af7 100644 --- a/locator/network_topology_strategy.cc +++ b/locator/network_topology_strategy.cc @@ -28,10 +28,6 @@ struct hash { namespace locator { -bool operator==(const endpoint_dc_rack& d1, const endpoint_dc_rack& d2) { - return std::tie(d1.dc, d1.rack) == std::tie(d2.dc, d2.rack); -} - network_topology_strategy::network_topology_strategy( const replication_strategy_config_options& config_options) : abstract_replication_strategy(config_options, diff --git a/locator/types.hh b/locator/types.hh index b618ea270e..45c8ea0509 100644 --- a/locator/types.hh +++ b/locator/types.hh @@ -25,6 +25,8 @@ using inet_address = gms::inet_address; struct endpoint_dc_rack { sstring dc; sstring rack; + + bool operator==(const endpoint_dc_rack&) const = default; }; using dc_rack_fn = seastar::noncopyable_function;