Skip to content

Commit d8d5e1a

Browse files
committed
Fix unused variable compiler warning in !debug builds.
Introduced in 3dbb317. Fix by using the new local variable in more places. Reported-By: Bruce Momjian (off-list) Backpatch: 9.4-, like 3dbb317
1 parent f495b65 commit d8d5e1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/catalog/indexing.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
135135
Assert(!ReindexIsProcessingIndex(RelationGetRelid(index)));
136136
continue;
137137
}
138-
#endif /* USE_ASSERT_CHECKING */
138+
#endif /* USE_ASSERT_CHECKING */
139139

140140
/*
141141
* FormIndexDatum fills in its values and isnull parameters with the
@@ -150,12 +150,12 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
150150
/*
151151
* The index AM does the rest.
152152
*/
153-
index_insert(relationDescs[i], /* index relation */
153+
index_insert(index, /* index relation */
154154
values, /* array of index Datums */
155155
isnull, /* is-null flags */
156156
&(heapTuple->t_self), /* tid of heap tuple */
157157
heapRelation,
158-
relationDescs[i]->rd_index->indisunique ?
158+
index->rd_index->indisunique ?
159159
UNIQUE_CHECK_YES : UNIQUE_CHECK_NO,
160160
indexInfo);
161161
}

0 commit comments

Comments
 (0)