mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
feat(server): Allow admin commands in multi (#722)
Needed for sentinel support (#706) Signed-off-by: ashotland <ari@dragonflydb.io> Signed-off-by: ashotland <ari@dragonflydb.io>
This commit is contained in:
parent
cdafaa78c0
commit
59bfecad69
5 changed files with 51 additions and 22 deletions
|
@ -335,7 +335,7 @@ bool Transaction::RunInShard(EngineShard* shard) {
|
|||
|
||||
// We make sure that we lock exactly once for each (multi-hop) transaction inside
|
||||
// transactions that lock incrementally.
|
||||
if (incremental_lock && ((sd.local_mask & KEYLOCK_ACQUIRED) == 0)) {
|
||||
if (!IsGlobal() && incremental_lock && ((sd.local_mask & KEYLOCK_ACQUIRED) == 0)) {
|
||||
DCHECK(!awaked_prerun); // we should not have blocking transaction inside multi block.
|
||||
|
||||
sd.local_mask |= KEYLOCK_ACQUIRED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue