Skip to content
Snippets Groups Projects
Commit 0021ce27 authored by Stephen Frost's avatar Stephen Frost
Browse files

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
parent 06a0f6de
No related branches found
No related tags found
No related merge requests found
...@@ -780,6 +780,7 @@ NewRestoreOptions(void) ...@@ -780,6 +780,7 @@ NewRestoreOptions(void)
opts->format = archUnknown; opts->format = archUnknown;
opts->promptPassword = TRI_DEFAULT; opts->promptPassword = TRI_DEFAULT;
opts->dumpSections = DUMP_UNSECTIONED; opts->dumpSections = DUMP_UNSECTIONED;
opts->number_of_jobs = 1;
return opts; return opts;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment