Fix typo with logical connector (src/backend/commands/vacuumparallel.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Fix typo with logical connector (src/backend/commands/vacuumparallel.c)
Date: 2022-08-19 12:04:57
Message-ID: CAEudQApL8QcoYwQuutkWKY_h7gBY8F0Xs34YKfc7-G0i83K_pw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

At function parallel_vacuum_process_all_indexes there is
a typo with a logical connector.

I think that correct is &&, because both of the operators are
bool types [1].

As a result, parallel vacuum workers can be incorrectly enabled.

Attached a trivial fix.

regards,
Ranier Vilela

[1]
https://wiki.sei.cmu.edu/confluence/display/c/EXP46-C.+Do+not+use+a+bitwise+operator+with+a+Boolean-like+operand

Attachment Content-Type Size
001-avoid-call-function-typo-shortcut.patch application/octet-stream 645 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2022-08-19 12:09:37 Re: Fix typo with logical connector (src/backend/commands/vacuumparallel.c)
Previous Message Bharath Rupireddy 2022-08-19 12:04:56 Re: pg_receivewal and SIGTERM