mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
feat: Remove batch locks from non-atomic squashing (#1613)
feat: Remove batch locks from non-atomic squashing Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
3b0bd212f4
commit
844fe57dec
4 changed files with 52 additions and 38 deletions
|
@ -332,14 +332,6 @@ OpStatus Transaction::InitByArgs(DbIndex index, CmdArgList args) {
|
|||
return OpStatus::OK;
|
||||
}
|
||||
|
||||
void Transaction::PrepareSquashedMultiHop(const CommandId* cid, CmdArgList keys) {
|
||||
MultiSwitchCmd(cid);
|
||||
|
||||
multi_->role = SQUASHER;
|
||||
InitBase(db_index_, keys);
|
||||
InitByKeys(KeyIndex::Range(0, keys.size()));
|
||||
}
|
||||
|
||||
void Transaction::PrepareSquashedMultiHop(const CommandId* cid,
|
||||
absl::FunctionRef<bool(ShardId)> enabled) {
|
||||
CHECK(multi_->mode == GLOBAL || multi_->mode == LOCK_AHEAD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue