forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38ddeab
committed
Fix minor bug in logical-replication walsender shutdown
Logical walsender should exit when it catches up with sending WAL duringshutdown; but there was a rare corner case when it failed to because ofa race condition that puts it back to wait for more WAL instead -- butsince there wasn't any, it'd not shut down immediately. It would onlycontinue the shutdown when wal_sender_timeout terminates the sleep,which causes annoying waits during shutdown procedure. Restructure thecode so that we no longer forget to set WalSndCaughtUp in that case.This was an oversight in commitc6c3334.Backpatch all the way down to 9.4.Author: Craig Ringer, Álvaro HerreraDiscussion:https://postgr.es/m/CAMsr+YEuz4XwZX_QmnX_-2530XhyAmnK=zCmicEnq1vLr0aZ-g@mail.gmail.com1 parent1752e35 commit38ddeab
1 file changed
+17
-28
lines changedLines changed: 17 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1295 | 1295 |
| |
1296 | 1296 |
| |
1297 | 1297 |
| |
1298 |
| - | |
1299 | 1298 |
| |
1300 | 1299 |
| |
1301 | 1300 |
| |
| |||
2814 | 2813 |
| |
2815 | 2814 |
| |
2816 | 2815 |
| |
| 2816 | + | |
2817 | 2817 |
| |
2818 | 2818 |
| |
2819 | 2819 |
| |
| |||
2830 | 2830 |
| |
2831 | 2831 |
| |
2832 | 2832 |
| |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
2833 | 2838 |
| |
2834 | 2839 |
| |
2835 |
| - | |
2836 |
| - | |
2837 |
| - | |
2838 | 2840 |
| |
2839 | 2841 |
| |
2840 | 2842 |
| |
| |||
2843 | 2845 |
| |
2844 | 2846 |
| |
2845 | 2847 |
| |
2846 |
| - | |
2847 |
| - | |
2848 |
| - | |
2849 |
| - | |
2850 |
| - | |
2851 |
| - | |
2852 |
| - | |
2853 | 2848 |
| |
2854 |
| - | |
2855 |
| - | |
2856 |
| - | |
2857 |
| - | |
2858 |
| - | |
2859 |
| - | |
2860 |
| - | |
2861 |
| - | |
2862 |
| - | |
2863 | 2849 |
| |
2864 |
| - | |
2865 |
| - | |
2866 |
| - | |
2867 |
| - | |
2868 |
| - | |
2869 |
| - | |
2870 |
| - | |
2871 |
| - | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
2872 | 2861 |
| |
2873 | 2862 |
| |
2874 | 2863 |
| |
|
0 commit comments
Comments
(0)