]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Initialize number_of_jobs in NewRestoreOptions
authorStephen Frost <sfrost@snowman.net>
Tue, 7 Feb 2017 15:17:02 +0000 (10:17 -0500)
committerStephen Frost <sfrost@snowman.net>
Tue, 7 Feb 2017 15:17:02 +0000 (10:17 -0500)
commit0021ce274319215fdc481ae29f059068f7a5bf0a
treeac3c8eb737b2a987756cfef936557e0a4223cc21
parent06a0f6de31b35b0b11255ca84737d57fe74f3863
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
src/bin/pg_dump/pg_backup_archiver.c