virtual_tables: no need to call gossiper if we already know that the node is in shutdown

This commit is contained in:
Gleb Natapov
2026-03-18 12:01:39 +02:00
parent e17fc180a0
commit b2e35c538f

View File

@@ -99,7 +99,7 @@ public:
set_cell(cr, "up", gossiper.is_alive(hostid));
if (gossiper.is_shutdown(endpoint)) {
set_cell(cr, "status", gossiper.get_gossip_status(endpoint));
set_cell(cr, "status", "shutdown");
} else {
set_cell(cr, "status", boost::to_upper_copy<std::string>(fmt::format("{}", ss.get_node_state(hostid))));
}