mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Rename local variable for consistency.
Pointed out by Robert Haas.
This commit is contained in:
@ -3408,7 +3408,7 @@ reindex_index(Oid indexId, bool skip_constraint_checks, char persistence,
|
|||||||
HeapTuple indexTuple;
|
HeapTuple indexTuple;
|
||||||
Form_pg_index indexForm;
|
Form_pg_index indexForm;
|
||||||
bool index_bad;
|
bool index_bad;
|
||||||
bool early_vacuum_enabled = EarlyPruningEnabled(heapRelation);
|
bool early_pruning_enabled = EarlyPruningEnabled(heapRelation);
|
||||||
|
|
||||||
pg_index = heap_open(IndexRelationId, RowExclusiveLock);
|
pg_index = heap_open(IndexRelationId, RowExclusiveLock);
|
||||||
|
|
||||||
@ -3423,11 +3423,11 @@ reindex_index(Oid indexId, bool skip_constraint_checks, char persistence,
|
|||||||
!indexForm->indislive);
|
!indexForm->indislive);
|
||||||
if (index_bad ||
|
if (index_bad ||
|
||||||
(indexForm->indcheckxmin && !indexInfo->ii_BrokenHotChain) ||
|
(indexForm->indcheckxmin && !indexInfo->ii_BrokenHotChain) ||
|
||||||
early_vacuum_enabled)
|
early_pruning_enabled)
|
||||||
{
|
{
|
||||||
if (!indexInfo->ii_BrokenHotChain && !early_vacuum_enabled)
|
if (!indexInfo->ii_BrokenHotChain && !early_pruning_enabled)
|
||||||
indexForm->indcheckxmin = false;
|
indexForm->indcheckxmin = false;
|
||||||
else if (index_bad || early_vacuum_enabled)
|
else if (index_bad || early_pruning_enabled)
|
||||||
indexForm->indcheckxmin = true;
|
indexForm->indcheckxmin = true;
|
||||||
indexForm->indisvalid = true;
|
indexForm->indisvalid = true;
|
||||||
indexForm->indisready = true;
|
indexForm->indisready = true;
|
||||||
|
Reference in New Issue
Block a user