Fix unused variable compiler warning in !debug builds.
Introduced in3dbb317d3
. Fix by using the new local variable in more places. Reported-By: Bruce Momjian (off-list) Backpatch: 9.4-, like3dbb317d3
This commit is contained in:
parent
11ea45ffec
commit
d264bb51c5
|
@ -136,7 +136,7 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
|
||||||
Assert(!ReindexIsProcessingIndex(RelationGetRelid(index)));
|
Assert(!ReindexIsProcessingIndex(RelationGetRelid(index)));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif /* USE_ASSERT_CHECKING */
|
#endif /* USE_ASSERT_CHECKING */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FormIndexDatum fills in its values and isnull parameters with the
|
* FormIndexDatum fills in its values and isnull parameters with the
|
||||||
|
@ -151,12 +151,12 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
|
||||||
/*
|
/*
|
||||||
* The index AM does the rest.
|
* The index AM does the rest.
|
||||||
*/
|
*/
|
||||||
index_insert(relationDescs[i], /* index relation */
|
index_insert(index, /* index relation */
|
||||||
values, /* array of index Datums */
|
values, /* array of index Datums */
|
||||||
isnull, /* is-null flags */
|
isnull, /* is-null flags */
|
||||||
&(heapTuple->t_self), /* tid of heap tuple */
|
&(heapTuple->t_self), /* tid of heap tuple */
|
||||||
heapRelation,
|
heapRelation,
|
||||||
relationDescs[i]->rd_index->indisunique ?
|
index->rd_index->indisunique ?
|
||||||
UNIQUE_CHECK_YES : UNIQUE_CHECK_NO,
|
UNIQUE_CHECK_YES : UNIQUE_CHECK_NO,
|
||||||
indexInfo);
|
indexInfo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue