summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Frost2017-02-07 15:17:02 +0000
committerStephen Frost2017-02-07 15:17:02 +0000
commit0021ce274319215fdc481ae29f059068f7a5bf0a (patch)
treeac3c8eb737b2a987756cfef936557e0a4223cc21
parent06a0f6de31b35b0b11255ca84737d57fe74f3863 (diff)
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
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c1
1 files changed, 1 insertions, 0 deletions
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;
}