mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix(rdb): Remove transaction from pre/post load search index rebuild (#2419)
This commit is contained in:
parent
de817098a7
commit
1fb3c74933
3 changed files with 3 additions and 24 deletions
|
@ -1522,22 +1522,6 @@ void Transaction::FinishLogJournalOnShard(EngineShard* shard, uint32_t shard_cnt
|
|||
unique_slot_checker_.GetUniqueSlotId(), {}, false);
|
||||
}
|
||||
|
||||
void Transaction::RunOnceAsCommand(const CommandId* cid, RunnableType cb) {
|
||||
if (!ProactorBase::IsProactorThread())
|
||||
return shard_set->pool()->at(0)->Await([cid, cb] { return RunOnceAsCommand(cid, cb); });
|
||||
|
||||
DCHECK(cid);
|
||||
DCHECK(cid->opt_mask() & (CO::GLOBAL_TRANS | CO::NO_KEY_TRANSACTIONAL));
|
||||
DCHECK(ProactorBase::IsProactorThread());
|
||||
|
||||
boost::intrusive_ptr<Transaction> trans{new Transaction{cid}};
|
||||
trans->InitByArgs(0, {});
|
||||
trans->ScheduleSingleHop([cb](auto* trans, auto* es) {
|
||||
cb(trans, es);
|
||||
return OpStatus::OK;
|
||||
});
|
||||
}
|
||||
|
||||
void Transaction::CancelBlocking(std::function<OpStatus(ArgSlice)> status_cb) {
|
||||
if ((coordinator_state_ & COORD_BLOCKED) == 0)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue