OSDN Git Service

Exit from base backups when shutdown is requested
authorMagnus Hagander <magnus@hagander.net>
Fri, 14 Jan 2011 11:36:45 +0000 (12:36 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 14 Jan 2011 11:36:45 +0000 (12:36 +0100)
commit688423d004f4092aed73c73a3281c281d476436d
treef57cc33f0accf32a7c75e1d725f48e5e40e11bfb
parent52948169bcddf443b76d6ff1806259b153a2ac04
Exit from base backups when shutdown is requested

When the exit waits until the whole backup completes, it may take
a very long time.

In passing, add back an error check in the main loop so we detect
clients that disconnect much earlier if the backup is large.
src/backend/replication/basebackup.c
src/backend/replication/walsender.c
src/include/replication/walsender.h