From 5a948d3fac90be73d540aa44dd9b3607897ffd25 Mon Sep 17 00:00:00 2001 From: Aleksandra Martyniuk Date: Wed, 11 Dec 2024 11:59:14 +0100 Subject: [PATCH] tasks: initialize shard in task_info ctor Initialize shard in task_info constructor. All current usages do not care about the shard of an empty task_info. In the following patches we may need that for setting info about virtual task parent. --- tasks/types.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/types.hh b/tasks/types.hh index 090ca740b7..bd9be78f09 100644 --- a/tasks/types.hh +++ b/tasks/types.hh @@ -18,7 +18,7 @@ struct task_info { task_id id; unsigned shard; - task_info() noexcept : id(task_id::create_null_id()) {} + task_info() noexcept : id(task_id::create_null_id()), shard(0) {} task_info(task_id id, unsigned parent_shard) noexcept : id(id), shard(parent_shard) {} operator bool() const noexcept {