aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-30 12:00:03 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-30 12:00:03 -0400
commit5aa8db0148e7f59979122b34155a30885f4eb91e (patch)
tree2f2500fb4d55ba1631a3987395232cd06c68d4b0 /src/tutorial/complex.c
parente97b7372bf94e20df41b73f81c53157d53826535 (diff)
downloadpostgresql-5aa8db0148e7f59979122b34155a30885f4eb91e.tar.gz
postgresql-5aa8db0148e7f59979122b34155a30885f4eb91e.zip
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
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions