service: tasks: fix type of global_topology_request_virtual_task

Currently, the type of global_topology_request_virtual_task isn't
taken out of std::variant before printing, which results with
a task of type variant(actual_type).

Retrieve the type from the variant before passing it to task type.
This commit is contained in:
Aleksandra Martyniuk
2026-01-15 13:10:56 +01:00
parent 580dfd63e5
commit 3ed8701301

View File

@@ -363,7 +363,7 @@ future<tasks::is_abortable> global_topology_request_virtual_task::is_abortable(t
static tasks::task_stats get_task_stats(const db::system_keyspace::topology_requests_entry& entry) {
return tasks::task_stats{
.task_id = tasks::task_id{entry.id},
.type = fmt::to_string(entry.request_type),
.type = fmt::to_string(std::get<service::global_topology_request>(entry.request_type)),
.kind = tasks::task_kind::cluster,
.scope = "keyspace",
.state = get_state(entry),