postgresql/src
Tom Lane fca85f8ef1 Fix walsender to exit promptly if client requests shutdown.
It's possible for WalSndWaitForWal to be asked to wait for WAL that doesn't
exist yet.  That's fine, in fact it's the normal situation if we're caught
up; but when the client requests shutdown we should not keep waiting.
The previous coding could wait indefinitely if the source server was idle.

In passing, improve the rather weak comments in this area, and slightly
rearrange some related code for better readability.

Back-patch to 9.4 where this code was introduced.

Discussion: https://postgr.es/m/14154.1498781234@sss.pgh.pa.us
2017-06-30 12:00:15 -04:00
..
backend Fix walsender to exit promptly if client requests shutdown. 2017-06-30 12:00:15 -04:00
bin Ooops, WIN32 code in pg_ctl.c still needs PQExpBuffer. 2017-06-28 18:00:16 -04:00
common Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
fe_utils Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
include Change pg_ctl to detect server-ready by watching status in postmaster.pid. 2017-06-28 17:31:32 -04:00
interfaces Second try at fixing tcp_keepalives_idle option on Solaris. 2017-06-28 12:30:16 -04:00
makefiles
pl Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
port Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
template
test Eat XIDs more efficiently in recovery TAP test. 2017-06-28 22:11:12 -04:00
timezone Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
tools Ooops, WIN32 code in pg_ctl.c still needs PQExpBuffer. 2017-06-28 18:00:16 -04:00
tutorial
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
Makefile.shlib
nls-global.mk