forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit86073a2
committed
Correctly detect SSI conflicts of prepared transactions after crash.
A prepared transaction can get new conflicts in and out after preparing, sowe cannot rely on the in- and out-flags stored in the statefile at prepare-time. As a quick fix, make the conservative assumption that after a restart,all prepared transactions are considered to have both in- and out-conflicts.That can lead to unnecessary rollbacks after a crash, but that shouldn't bea big problem in practice; you don't want prepared transactions to hangaround for a long time anyway.Dan Ports1 parent57b100f commit86073a2
1 file changed
+15
-16
lines changedLines changed: 15 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4659 | 4659 |
| |
4660 | 4660 |
| |
4661 | 4661 |
| |
4662 |
| - | |
4663 |
| - | |
4664 |
| - | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
4665 | 4666 |
| |
4666 |
| - | |
4667 |
| - | |
4668 |
| - | |
4669 |
| - | |
4670 | 4667 |
| |
4671 | 4668 |
| |
4672 | 4669 |
| |
| |||
4801 | 4798 |
| |
4802 | 4799 |
| |
4803 | 4800 |
| |
4804 |
| - | |
4805 |
| - | |
4806 |
| - | |
4807 |
| - | |
4808 |
| - | |
4809 |
| - | |
4810 |
| - | |
4811 |
| - | |
4812 |
| - | |
4813 | 4801 |
| |
4814 | 4802 |
| |
4815 | 4803 |
| |
| |||
4831 | 4819 |
| |
4832 | 4820 |
| |
4833 | 4821 |
| |
| 4822 | + | |
| 4823 | + | |
| 4824 | + | |
| 4825 | + | |
| 4826 | + | |
| 4827 | + | |
| 4828 | + | |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
4834 | 4833 |
| |
4835 | 4834 |
| |
4836 | 4835 |
| |
|
0 commit comments
Comments
(0)