]> git.ipfire.org Git - thirdparty/postgresql.git/commit
vacuumdb: Don't assign negative values to a boolean.
authorAndres Freund <andres@anarazel.de>
Wed, 12 Aug 2015 14:49:36 +0000 (16:49 +0200)
committerAndres Freund <andres@anarazel.de>
Sat, 15 Aug 2015 14:54:10 +0000 (16:54 +0200)
commit32951f9aa9acfd4b6318f6daf39c3d1c10a264ba
tree4c9d9ea4b6976ebaed866954ec1ff1414b0d17e5
parentd19c1b0b24d53f41222bf808dc6b40404b2954a1
vacuumdb: Don't assign negative values to a boolean.

Since a17923204736 (vacuumdb: enable parallel mode) -1 has been assigned
to a boolean. That can, justifiedly, trigger compiler warnings. There's
also no need for ternary logic, result was only ever set to 0 or -1. So
don't.

Discussion: 20150812084351.GD8470@awork2.anarazel.de
Backpatch: 9.5
src/bin/scripts/vacuumdb.c