summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-08-02 15:16:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-08-02 15:16:37 -0400
commit1318f1ad775d310fc7ce045603432c0f810dcdbf (patch)
tree512f528214dc655abaa88f1c9b7245138d12b38a /src/tutorial
parent0dd6a09e3d127e728b9f43cfaf19e5351f60a096 (diff)
Move CheckRecoveryConflictDeadlock() call to a safer place.
This kluge was inserted in a spot apparently chosen at random: the lock manager's state is not yet fully set up for the wait, and in particular LockWaitCancel hasn't been armed by setting lockAwaited, so the ProcLock will not get cleaned up if the ereport is thrown. This seems to not cause any observable problem in trivial test cases, because LockReleaseAll will silently clean up the debris; but I was able to cause failures with tests involving subtransactions. Fixes breakage induced by commit c85c941470efc44494fd7a5f426ee85fc65c268c. Back-patch to all affected branches.
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions