Skip to content

Commit 0021ce2

Browse files
committed
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
1 parent 06a0f6d commit 0021ce2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ NewRestoreOptions(void)
780780
opts->format = archUnknown;
781781
opts->promptPassword = TRI_DEFAULT;
782782
opts->dumpSections = DUMP_UNSECTIONED;
783+
opts->number_of_jobs = 1;
783784

784785
return opts;
785786
}

0 commit comments

Comments
 (0)