forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd6a7271
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 parent8cae581 commitd6a7271
1 file changed
+15
-16
lines changedLines changed: 15 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4730 | 4730 |
| |
4731 | 4731 |
| |
4732 | 4732 |
| |
4733 |
| - | |
4734 |
| - | |
4735 |
| - | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
4736 | 4737 |
| |
4737 |
| - | |
4738 |
| - | |
4739 |
| - | |
4740 |
| - | |
4741 | 4738 |
| |
4742 | 4739 |
| |
4743 | 4740 |
| |
| |||
4872 | 4869 |
| |
4873 | 4870 |
| |
4874 | 4871 |
| |
4875 |
| - | |
4876 |
| - | |
4877 |
| - | |
4878 |
| - | |
4879 |
| - | |
4880 |
| - | |
4881 |
| - | |
4882 |
| - | |
4883 |
| - | |
4884 | 4872 |
| |
4885 | 4873 |
| |
4886 | 4874 |
| |
| |||
4902 | 4890 |
| |
4903 | 4891 |
| |
4904 | 4892 |
| |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
| 4899 | + | |
| 4900 | + | |
| 4901 | + | |
| 4902 | + | |
| 4903 | + | |
4905 | 4904 |
| |
4906 | 4905 |
| |
4907 | 4906 |
| |
|
0 commit comments
Comments
(0)