Fix race condition in transaction timeout TAP tests
authorAlexander Korotkov <[email protected]>
Fri, 15 Mar 2024 12:31:25 +0000 (14:31 +0200)
committerAlexander Korotkov <[email protected]>
Fri, 15 Mar 2024 12:38:22 +0000 (14:38 +0200)
commit4c2eda67f55a8a263820d12aaeaa7e1dfe7406ee
tree165e17284c4921a2472108d9b565b859ae263d11
parenta3f349c612923b53bd168b1dfb541a4ec712b421
Fix race condition in transaction timeout TAP tests

The interruption handler within the injection point can get stuck in an
infinite loop while handling transaction timeout. To avoid this situation
we reset the timeout flag before invoking the injection point.

Author: Alexander Korotkov
Reviewed-by: Andrey Borodin
Discussion: https://postgr.es/m/ZfPchPC6oNN71X2J%40paquier.xyz
src/backend/tcop/postgres.c