mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix(list): Fixes blpop failure. (#462)
The bug was that if two push operations where queued together in the tx queue, and the first push awakes pending blpop, then the PollExecution function would continue with the second push before switching to blpop, which contradicts the spec. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
d95de3347a
commit
2b87088121
3 changed files with 51 additions and 6 deletions
|
@ -1137,7 +1137,8 @@ bool Transaction::NotifySuspended(TxId committed_txid, ShardId sid) {
|
|||
return false;
|
||||
}
|
||||
|
||||
DVLOG(1) << "NotifySuspended " << DebugId() << ", local_mask:" << local_mask;
|
||||
DVLOG(1) << "NotifySuspended " << DebugId() << ", local_mask:" << local_mask
|
||||
<< " by " << committed_txid;
|
||||
|
||||
// local_mask could be awaked (i.e. not suspended) if the transaction has been
|
||||
// awakened by another key or awakened by the same key multiple times.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue