Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit254d79f

Browse files
author
Amit Kapila
committed
Use logical operator && instead of & in vacuumparallel.c.
As such the current usage of & won't produce incorrect results but itwould be better to use && to short-circuit the evaluation of secondcondition when the same is not required.Author: Ranier VilelaReviewed-by: Tom Lane, Bharath RupireddyBackpatch-through: 15, where it was introducedDiscussion:https://postgr.es/m/CAEudQApL8QcoYwQuutkWKY_h7gBY8F0Xs34YKfc7-G0i83K_pw@mail.gmail.com
1 parent24f457a commit254d79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/vacuumparallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ parallel_vacuum_process_all_indexes(ParallelVacuumState *pvs, int num_index_scan
612612
Assert(indstats->status==PARALLEL_INDVAC_STATUS_INITIAL);
613613
indstats->status=new_status;
614614
indstats->parallel_workers_can_process=
615-
(pvs->will_parallel_vacuum[i]&
615+
(pvs->will_parallel_vacuum[i]&&
616616
parallel_vacuum_index_is_parallel_safe(pvs->indrels[i],
617617
num_index_scans,
618618
vacuum));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp