- Notifications
You must be signed in to change notification settings - Fork5
Commitac36e6f
committed
Move CheckRecoveryConflictDeadlock() call to a safer place.
This kluge was inserted in a spot apparently chosen at random: the lockmanager's state is not yet fully set up for the wait, and in particularLockWaitCancel hasn't been armed by setting lockAwaited, so the ProcLockwill not get cleaned up if the ereport is thrown. This seems to not causeany observable problem in trivial test cases, because LockReleaseAll willsilently clean up the debris; but I was able to cause failures with testsinvolving subtransactions.Fixes breakage induced by commitc85c941.Back-patch to all affected branches.1 parent2e53bd5 commitac36e6f
4 files changed
+22
-19
lines changedLines changed: 12 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
462 |
| - | |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 |
| - | |
468 |
| - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
469 | 472 |
| |
470 | 473 |
| |
471 |
| - | |
| 474 | + | |
472 | 475 |
| |
473 |
| - | |
| 476 | + | |
474 | 477 |
| |
475 | 478 |
| |
476 | 479 |
| |
477 | 480 |
| |
478 |
| - | |
479 |
| - | |
480 | 481 |
| |
481 | 482 |
| |
482 | 483 |
| |
|
Lines changed: 0 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
844 | 844 |
| |
845 | 845 |
| |
846 | 846 |
| |
847 |
| - | |
848 |
| - | |
849 |
| - | |
850 |
| - | |
851 |
| - | |
852 |
| - | |
853 |
| - | |
854 | 847 |
| |
855 | 848 |
| |
856 | 849 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
934 | 934 |
| |
935 | 935 |
| |
936 | 936 |
| |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
937 | 946 |
| |
938 | 947 |
| |
939 | 948 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 |
| - | |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
|
0 commit comments
Comments
(0)