- Notifications
You must be signed in to change notification settings - Fork5
Commit326b922
committed
Fix corner case in cleanup of transactions using SSI.
When the only remaining active transactions are READ ONLY, we do a "partialcleanup" of committed transactions because certain types of conflictsaren't possible anymore. For committed r/w transactions, we release theSIREAD locks but keep the SERIALIZABLEXACT. However, for committed r/otransactions, we can go further and release the SERIALIZABLEXACT too. Theproblem was with the latter case: we were returning the SERIALIZABLEXACT tothe free list without removing it from the finished list.The only real change in the patch is the SHMQueueDelete line, but I alsoreworked some of the surrounding code to make it obvious that r/o and r/wtransactions are handled differently -- the existing code felt a bit tooclever.Dan Ports1 parent2106c55 commit326b922
1 file changed
+23
-3
lines changedLines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3528 | 3528 |
| |
3529 | 3529 |
| |
3530 | 3530 |
| |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
3531 | 3536 |
| |
3532 |
| - | |
3533 |
| - | |
3534 |
| - | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
3535 | 3554 |
| |
3536 | 3555 |
| |
3537 | 3556 |
| |
| |||
3637 | 3656 |
| |
3638 | 3657 |
| |
3639 | 3658 |
| |
| 3659 | + | |
3640 | 3660 |
| |
3641 | 3661 |
| |
3642 | 3662 |
| |
|
0 commit comments
Comments
(0)