mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix: add Transaction::Conclude (#1606)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
366f50230b
commit
eda941dca6
9 changed files with 23 additions and 34 deletions
|
@ -897,6 +897,11 @@ void Transaction::ExecuteAsync() {
|
|||
IterateActiveShards([&cb](PerShardData& sd, auto i) { shard_set->Add(i, cb); });
|
||||
}
|
||||
|
||||
void Transaction::Conclude() {
|
||||
auto cb = [](Transaction* t, EngineShard* shard) { return OpStatus::OK; };
|
||||
Execute(std::move(cb), true);
|
||||
}
|
||||
|
||||
void Transaction::RunQuickie(EngineShard* shard) {
|
||||
DCHECK(!IsAtomicMulti());
|
||||
DCHECK(shard_data_.size() == 1u || multi_->mode == NON_ATOMIC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue