mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix: remove NotifyPending from UnwatchShardCb (#1402)
NotifyPending was being called when a blocked transaction expires, which meant other blocked transactions could be woken up even though another transaction could be in progress. NotifyPending has no affect on the blocked transaction. Signed-off-by: Andy Dunstall <andydunstall@hotmail.co.uk>
This commit is contained in:
parent
3f27bd3eba
commit
d6e97fcf6d
2 changed files with 30 additions and 2 deletions
|
@ -1171,8 +1171,6 @@ void Transaction::UnwatchShardCb(ArgSlice wkeys, bool should_expire, EngineShard
|
|||
sd.local_mask &= ~KEYLOCK_ACQUIRED;
|
||||
shard->blocking_controller()->FinalizeWatched(wkeys, this);
|
||||
DCHECK(!shard->blocking_controller()->awakened_transactions().contains(this));
|
||||
|
||||
shard->blocking_controller()->NotifyPending();
|
||||
}
|
||||
|
||||
// Need to see why I decided to call this.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue