summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorMagnus Hagander2011-01-14 11:36:45 +0000
committerMagnus Hagander2011-01-14 11:36:45 +0000
commit688423d004f4092aed73c73a3281c281d476436d (patch)
treef57cc33f0accf32a7c75e1d725f48e5e40e11bfb /src/include/replication
parent52948169bcddf443b76d6ff1806259b153a2ac04 (diff)
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.
Diffstat (limited to 'src/include/replication')
-rw-r--r--src/include/replication/walsender.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/replication/walsender.h b/src/include/replication/walsender.h
index 0b4a143f82..9039b240c4 100644
--- a/src/include/replication/walsender.h
+++ b/src/include/replication/walsender.h
@@ -53,6 +53,8 @@ extern WalSndCtlData *WalSndCtl;
/* global state */
extern bool am_walsender;
+extern volatile sig_atomic_t walsender_shutdown_requested;
+extern volatile sig_atomic_t walsender_ready_to_stop;
/* user-settable parameters */
extern int WalSndDelay;