From 3ed8701301d83a9e63eece03ea4b9be97f2e9129 Mon Sep 17 00:00:00 2001 From: Aleksandra Martyniuk Date: Thu, 15 Jan 2026 13:10:56 +0100 Subject: [PATCH] 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. --- service/task_manager_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/task_manager_module.cc b/service/task_manager_module.cc index 49c87077c1..dd7a6014ac 100644 --- a/service/task_manager_module.cc +++ b/service/task_manager_module.cc @@ -363,7 +363,7 @@ future 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(entry.request_type)), .kind = tasks::task_kind::cluster, .scope = "keyspace", .state = get_state(entry),