mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 09:55:45 +02:00
refactor: add cluster namespace (#2948)
* refactor: add cluster namespace, remove extra includes
This commit is contained in:
parent
1a5eacca87
commit
2230397a12
43 changed files with 330 additions and 297 deletions
|
@ -139,7 +139,8 @@ Transaction::Transaction(const CommandId* cid) : cid_{cid} {
|
|||
}
|
||||
}
|
||||
|
||||
Transaction::Transaction(const Transaction* parent, ShardId shard_id, std::optional<SlotId> slot_id)
|
||||
Transaction::Transaction(const Transaction* parent, ShardId shard_id,
|
||||
std::optional<cluster::SlotId> slot_id)
|
||||
: multi_{make_unique<MultiData>()},
|
||||
txid_{parent->txid()},
|
||||
unique_shard_cnt_{1},
|
||||
|
@ -1008,7 +1009,7 @@ ShardId Transaction::GetUniqueShard() const {
|
|||
return unique_shard_id_;
|
||||
}
|
||||
|
||||
optional<SlotId> Transaction::GetUniqueSlotId() const {
|
||||
optional<cluster::SlotId> Transaction::GetUniqueSlotId() const {
|
||||
return unique_slot_checker_.GetUniqueSlotId();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue