Skip to content

Commit 9eb0d6a

Browse files
committed
Prevent multiple archivers from starting. Backpatch to 8.1.X.
Simon Riggs
1 parent 85f6e27 commit 9eb0d6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/pgarch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*
2121
* IDENTIFICATION
22-
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.20 2006/03/05 15:58:35 momjian Exp $
22+
* $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.21 2006/05/30 13:30:49 momjian Exp $
2323
*
2424
*-------------------------------------------------------------------------
2525
*/
@@ -352,7 +352,7 @@ pgarch_ArchiverCopyLoop(void)
352352
* some backend will add files onto the list of those that need archiving
353353
* while we are still copying earlier archives
354354
*/
355-
while (pgarch_readyXlog(xlog))
355+
while (PostmasterIsAlive(true) && pgarch_readyXlog(xlog))
356356
{
357357
int failures = 0;
358358

0 commit comments

Comments
 (0)