mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
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
This commit is contained in:
@ -780,6 +780,7 @@ NewRestoreOptions(void)
|
||||
opts->format = archUnknown;
|
||||
opts->promptPassword = TRI_DEFAULT;
|
||||
opts->dumpSections = DUMP_UNSECTIONED;
|
||||
opts->number_of_jobs = 1;
|
||||
|
||||
return opts;
|
||||
}
|
||||
|
Reference in New Issue
Block a user