postgres.git / summary / log / commit / refs
commit 40230f0e2e3bed70eaada93b73a440221017d4d7
Author: Andres Freund <andres@anarazel.de>
Date: Wed May 01 00:45:32 2019 +0000
First released in: 12.0, 9.4.22, 9.5.17, 9.6.13, 10.8, 11.3
Fix unused variable compiler warning in !debug builds.
Introduced in 3dbb317d3. Fix by using the new local variable in more
places.
Reported-By: Bruce Momjian (off-list)
Backpatch: 9.4-, like 3dbb317d3
src/backend/catalog/indexing.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/catalog/indexing.c b/src/backend/catalog/indexing.c
index 8ae8f470df4..b028c460b6d 100644
--- a/src/backend/catalog/indexing.c
+++ b/src/backend/catalog/indexing.c
@@ -135,7 +135,7 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
Assert(!ReindexIsProcessingIndex(RelationGetRelid(index)));
continue;
}
-#endif /* USE_ASSERT_CHECKING */
+#endif /* USE_ASSERT_CHECKING */
/*
* FormIndexDatum fills in its values and isnull parameters with the
@@ -150,12 +150,12 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
/*
* The index AM does the rest.
*/
- index_insert(relationDescs[i], /* index relation */
+ index_insert(index, /* index relation */
values, /* array of index Datums */
isnull, /* is-null flags */
&(heapTuple->t_self), /* tid of heap tuple */
heapRelation,
- relationDescs[i]->rd_index->indisunique ?
+ index->rd_index->indisunique ?
UNIQUE_CHECK_YES : UNIQUE_CHECK_NO);
}
[parent: e7418f89f17a]