diff --git a/db/view/view.cc b/db/view/view.cc index f9fd2b253f..f7586fcf5c 100644 --- a/db/view/view.cc +++ b/db/view/view.cc @@ -2096,7 +2096,7 @@ future> view_builder::view_build_statuses(sstring keyspace, sstring view_name) const { std::unordered_map status = co_await _sys_dist_ks.view_status(std::move(keyspace), std::move(view_name)); std::unordered_map status_map; - const auto& topo = service::get_local_storage_proxy().get_token_metadata_ptr()->get_topology(); + const auto& topo = _db.get_token_metadata().get_topology(); topo.for_each_node([&] (const locator::node *node) { auto it = status.find(node->host_id()); auto s = it != status.end() ? std::move(it->second) : "UNKNOWN";