mirror of
https://github.com/postgres/postgres.git
synced 2026-04-09 11:06:21 -04:00
Fix parallel amvacuumcleanup safety bug.
Commitb4af70cbinverted the return value of the function parallel_processing_is_safe(), but missed the amvacuumcleanup test. Index AMs that don't support parallel cleanup at all were affected. The practical consequences of this bug were not very serious. Hash indexes are affected, but since they just return the number of blocks during hashvacuumcleanup anyway, it can't have had much impact. Author: Masahiko Sawada <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/CAD21AoA-Em+aeVPmBbL_s1V-ghsJQSxYL-i3JP8nTfPiD1wjKw@mail.gmail.com Backpatch: 14-, where commitb4af70cbappears.
This commit is contained in:
parent
61a86ed55b
commit
f6162c020c
1 changed files with 1 additions and 1 deletions
|
|
@ -4120,7 +4120,7 @@ parallel_processing_is_safe(Relation indrel, LVShared *lvshared)
|
|||
/* Skip, if the index does not support parallel cleanup */
|
||||
if (((vacoptions & VACUUM_OPTION_PARALLEL_CLEANUP) == 0) &&
|
||||
((vacoptions & VACUUM_OPTION_PARALLEL_COND_CLEANUP) == 0))
|
||||
return true;
|
||||
return false;
|
||||
|
||||
/*
|
||||
* Skip, if the index supports parallel cleanup conditionally, but we
|
||||
|
|
|
|||
Loading…
Reference in a new issue