Initialize ShardInfo::shardId, ShardInfo::desiredShardId. (#8750)
* Initialize ShardInfo::shardId, ShardInfo::desiredShardId. * corrected type. * Corrected type.
This commit is contained in:
parent
34da5e25a2
commit
58ebe486f4
|
@ -250,7 +250,7 @@ struct AddingShard : NonCopyable {
|
|||
|
||||
class ShardInfo : public ReferenceCounted<ShardInfo>, NonCopyable {
|
||||
ShardInfo(KeyRange keys, std::unique_ptr<AddingShard>&& adding, StorageServer* readWrite)
|
||||
: adding(std::move(adding)), readWrite(readWrite), keys(keys), version(0) {}
|
||||
: adding(std::move(adding)), readWrite(readWrite), keys(keys), shardId(0LL), desiredShardId(0LL), version(0) {}
|
||||
|
||||
public:
|
||||
// A shard has 3 mutual exclusive states: adding, readWrite and notAssigned.
|
||||
|
|
Loading…
Reference in New Issue