]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Use logical operator && instead of & in vacuumparallel.c.
authorAmit Kapila <akapila@postgresql.org>
Mon, 22 Aug 2022 03:21:25 +0000 (08:51 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 22 Aug 2022 03:21:25 +0000 (08:51 +0530)
commit254d79f0b23dfe107594c90ee8375165422db2c4
tree7738c1fe8ca3d1092991d482d64fd424e947072d
parent24f457aa2b7006e4b427a3ac1e7ce0f248b55ba3
Use logical operator && instead of & in vacuumparallel.c.

As such the current usage of & won't produce incorrect results but it
would be better to use && to short-circuit the evaluation of second
condition when the same is not required.

Author: Ranier Vilela
Reviewed-by: Tom Lane, Bharath Rupireddy
Backpatch-through: 15, where it was introduced
Discussion: https://postgr.es/m/CAEudQApL8QcoYwQuutkWKY_h7gBY8F0Xs34YKfc7-G0i83K_pw@mail.gmail.com
src/backend/commands/vacuumparallel.c