]> granicus.if.org Git - postgresql/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:51:34 +0000 (16:51 +0200)
commit1d4bd77568493309914217251dce5bd51f4a72b7
tree4ba1d3a23209dae6d58807bafd867230a5f63cc2
parent6c772c7453e3e1fa97e3ef0d7e90b22c7f4ea721
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