mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 09:55:45 +02:00
refactor: remove transaction lib on cluster code dependency (#4417)
This commit is contained in:
parent
cb752d90cd
commit
933c9f0b1c
30 changed files with 221 additions and 198 deletions
|
@ -184,8 +184,7 @@ Transaction::Transaction(const CommandId* cid) : cid_{cid} {
|
|||
}
|
||||
}
|
||||
|
||||
Transaction::Transaction(const Transaction* parent, ShardId shard_id,
|
||||
std::optional<cluster::SlotId> slot_id)
|
||||
Transaction::Transaction(const Transaction* parent, ShardId shard_id, std::optional<SlotId> slot_id)
|
||||
: multi_{make_unique<MultiData>()},
|
||||
txid_{parent->txid()},
|
||||
unique_shard_cnt_{1},
|
||||
|
@ -1017,7 +1016,7 @@ ShardId Transaction::GetUniqueShard() const {
|
|||
return unique_shard_id_;
|
||||
}
|
||||
|
||||
optional<cluster::SlotId> Transaction::GetUniqueSlotId() const {
|
||||
optional<SlotId> Transaction::GetUniqueSlotId() const {
|
||||
return unique_slot_checker_.GetUniqueSlotId();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue