1
0
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:
Stephen Frost
2017-02-07 10:17:02 -05:00
parent 06a0f6de31
commit 0021ce2743

View File

@ -780,6 +780,7 @@ NewRestoreOptions(void)
opts->format = archUnknown;
opts->promptPassword = TRI_DEFAULT;
opts->dumpSections = DUMP_UNSECTIONED;
opts->number_of_jobs = 1;
return opts;
}