aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_archiver.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-03-25 22:52:28 -0400
committerAndrew Dunstan <andrew@dunslane.net>2013-03-25 22:52:28 -0400
commitec143f94051779bb5d07419723529b4cc4fcce95 (patch)
tree560ac6bb7eeabf85c99c5c96eebff940f4c83e6e /src/bin/pg_dump/pg_backup_archiver.c
parent28ba260906c87ffbda42f93d867191f491025a04 (diff)
downloadpostgresql-ec143f94051779bb5d07419723529b4cc4fcce95.tar.gz
postgresql-ec143f94051779bb5d07419723529b4cc4fcce95.zip
Fix a small logic bug in adjusted parallel restore code.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.c')
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index 3c2671bb2d5..39b4f8ecca5 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -3574,8 +3574,10 @@ restore_toc_entries_parallel(ArchiveHandle *AH, ParallelState *pstate,
DispatchJobForTocEntry(AH, pstate, next_work_item, ACT_RESTORE);
}
else
+ {
/* at least one child is working and we have nothing ready. */
Assert(!IsEveryWorkerIdle(pstate));
+ }
for (;;)
{