virtual_tables: cluster_status_table: execute: set dc regardless of the token ownership

If a node is in `locator::topology`, then it has a location.
We remove the token ownership condition to make the table more
descriptive.
This commit is contained in:
Patryk Jędrzejczak
2024-08-07 17:01:01 +02:00
parent 61e5927e8e
commit 4ff08decb8

View File

@@ -93,7 +93,7 @@ public:
set_cell(cr, "host_id", hostid->uuid());
}
if (hostid && tm.is_normal_token_owner(*hostid)) {
if (hostid) {
sstring dc = tm.get_topology().get_location(endpoint).dc;
set_cell(cr, "dc", dc);
}