1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00

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
This commit is contained in:
Andres Freund
2019-04-30 17:45:32 -07:00
parent b06a354e38
commit 4b40d40b30

View File

@@ -154,12 +154,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);
} }