diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-05-30 13:30:49 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-05-30 13:30:49 +0000 |
commit | 9eb0d6a6b2b2f11a78485a3a1eb5aa9522eed303 (patch) | |
tree | b76d34579d78c41d3407e347594ea693036197ef | |
parent | 85f6e27d9ba5fc67fcf2d56f360ab8f8261aca73 (diff) | |
download | postgresql-9eb0d6a6b2b2f11a78485a3a1eb5aa9522eed303.tar.gz postgresql-9eb0d6a6b2b2f11a78485a3a1eb5aa9522eed303.zip |
Prevent multiple archivers from starting. Backpatch to 8.1.X.
Simon Riggs
-rw-r--r-- | src/backend/postmaster/pgarch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgarch.c b/src/backend/postmaster/pgarch.c index 45e80984132..3b6cc9d5d97 100644 --- a/src/backend/postmaster/pgarch.c +++ b/src/backend/postmaster/pgarch.c @@ -19,7 +19,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.20 2006/03/05 15:58:35 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.21 2006/05/30 13:30:49 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -352,7 +352,7 @@ pgarch_ArchiverCopyLoop(void) * some backend will add files onto the list of those that need archiving * while we are still copying earlier archives */ - while (pgarch_readyXlog(xlog)) + while (PostmasterIsAlive(true) && pgarch_readyXlog(xlog)) { int failures = 0; |