Skip to content
Snippets Groups Projects
Commit d8d5e1ae authored by Andres Freund's avatar Andres Freund
Browse files

Fix unused variable compiler warning in !debug builds.

Introduced in 3dbb317d.  Fix by using the new local variable in more
places.

Reported-By: Bruce Momjian (off-list)
Backpatch: 9.4-, like 3dbb317d
parent f495b65a
No related branches found
No related tags found
No related merge requests found
...@@ -150,12 +150,12 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple) ...@@ -150,12 +150,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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment