diff options
author | Andres Freund <andres@anarazel.de> | 2019-04-30 17:45:32 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2019-04-30 17:45:32 -0700 |
commit | 4b40d40b30ae04ba524cd410f14e64ae4425a180 (patch) | |
tree | cf97f21f9e6238fa746734125e2ebaaa6ac48a0a /src | |
parent | b06a354e381d30e13cef28904bb923896aa4719b (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/indexing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/catalog/indexing.c b/src/backend/catalog/indexing.c index 507879ecaf0..f237e62bc90 100644 --- a/src/backend/catalog/indexing.c +++ b/src/backend/catalog/indexing.c @@ -139,7 +139,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 @@ -154,12 +154,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, indexInfo); } |