Fix a small logic bug in adjusted parallel restore code.

This commit is contained in:
Andrew Dunstan 2013-03-25 22:52:28 -04:00
parent 28ba260906
commit ec143f9405

View File

@ -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 (;;)
{