From 0021ce274319215fdc481ae29f059068f7a5bf0a Mon Sep 17 00:00:00 2001 From: Stephen Frost Date: Tue, 7 Feb 2017 10:17:02 -0500 Subject: [PATCH] Initialize number_of_jobs in NewRestoreOptions Now that we're checking that the number_of_jobs passed in isn't zero or negative, we need to actually initialize number_of_jobs to '1' when it isn't set. Pointed out by Rushabh Lathia, though not his patch. Discussion: https://postgr.es/m/CAGPqQf2u1T3J=ANhCw1CuvzqjD80oWvMg2-2wmfG08gCm9hhHA@mail.gmail.com --- src/bin/pg_dump/pg_backup_archiver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 45e90140126..41cb89692a2 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -780,6 +780,7 @@ NewRestoreOptions(void) opts->format = archUnknown; opts->promptPassword = TRI_DEFAULT; opts->dumpSections = DUMP_UNSECTIONED; + opts->number_of_jobs = 1; return opts; } -- 2.39.5