File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 19
19
*
20
20
*
21
21
* IDENTIFICATION
22
- * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.21 2006/05/30 13:30:49 momjian Exp $
22
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgarch.c,v 1.22 2006/05/30 17:08:14 tgl Exp $
23
23
*
24
24
*-------------------------------------------------------------------------
25
25
*/
@@ -352,12 +352,16 @@ pgarch_ArchiverCopyLoop(void)
352
352
* some backend will add files onto the list of those that need archiving
353
353
* while we are still copying earlier archives
354
354
*/
355
- while (PostmasterIsAlive (true) && pgarch_readyXlog (xlog ))
355
+ while (pgarch_readyXlog (xlog ))
356
356
{
357
357
int failures = 0 ;
358
358
359
359
for (;;)
360
360
{
361
+ /* Abandon processing if we notice our postmaster has died */
362
+ if (!PostmasterIsAlive (true))
363
+ return ;
364
+
361
365
if (pgarch_archiveXlog (xlog ))
362
366
{
363
367
/* successful */
You can’t perform that action at this time.
0 commit comments