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