Skip to content

Commit b51c8ef

Browse files
committed
Fix bug that can cause walsender not to terminating at shutdown.
When backpatching c6c3334 I (Andres Freund) mis-resolved a conflict in the 9.4 branch. Unfortunately that leads to walsenders waiting forever when shutting down with connected standbys, unless immediate mode is used, or the standbys are forced to disconnect by other means. Author: Marco Nenciarini Reported-By: Abhijit Gharami, Marco Nenciarini Discussion: http://postgr.es/m/1434ad79-ab0d-d6a9-4ea2-1afb1c06adaf@2ndquadrant.it http://postgr.es/m/CAA5_DuD0O1XyM8OnOzhRepyPU-t8nZKLzs1pT2JpzP0NS+vVNA@mail.gmail.com Backpatch: 9.4 only
1 parent fe4c658 commit b51c8ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/replication/walsender.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,6 +2658,7 @@ WalSndLastCycleHandler(SIGNAL_ARGS)
26582658
{
26592659
int save_errno = errno;
26602660

2661+
got_SIGUSR2 = true;
26612662
if (MyWalSnd)
26622663
SetLatch(&MyWalSnd->latch);
26632664

0 commit comments

Comments
 (0)