mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user