- Notifications
You must be signed in to change notification settings - Fork5
Commit9c0e2b9
committed
Fix walsender handling of postmaster shutdown, to not go into endless loop.
This bug was introduced by my patch to use the regular die/quickdie signalhandlers in walsender processes. I tried to make walsender exit at nextCHECK_FOR_INTERRUPTS() by setting ProcDiePending, but that's not enough, youneed to set InterruptPending too. On second thoght, it was not a very goodway to make walsender exit anyway, so use proc_exit(0) instead.Also, send a CommandComplete message before exiting; that's what we didbefore, and you get a nicer error message in the standby that way.Reported by Thom Brown.1 parent95d035e commit9c0e2b9
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
716 | 719 | | |
717 | 720 | | |
718 | 721 | | |
| |||
0 commit comments
Comments
(0)