diff --git a/service/storage_service.cc b/service/storage_service.cc index 6767ae7246..7b0a8d42a4 100644 --- a/service/storage_service.cc +++ b/service/storage_service.cc @@ -1817,7 +1817,7 @@ std::unordered_set storage_service::parse_node_list(sstring c future> storage_service::get_nodes_to_sync_with( const std::unordered_set& ignore_nodes) { std::unordered_set result; - for (const auto& [node, _] :_gossiper.get_endpoint_states()) { + for (const auto& node :_gossiper.get_endpoints()) { co_await coroutine::maybe_yield(); slogger.info("Check node={}, status={}", node, _gossiper.get_gossip_status(node)); if (node != get_broadcast_address() && @@ -2812,12 +2812,11 @@ future<> storage_service::check_for_endpoint_collision(std::unordered_set