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.
This commit is contained in:
Aleksandra Martyniuk
2024-12-11 11:59:14 +01:00
parent 840bcdc158
commit 5a948d3fac

View File

@@ -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 {