Skip to content

Commit d264bb5

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 11ea45f commit d264bb5

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
@@ -136,7 +136,7 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
136136
Assert(!ReindexIsProcessingIndex(RelationGetRelid(index)));
137137
continue;
138138
}
139-
#endif /* USE_ASSERT_CHECKING */
139+
#endif /* USE_ASSERT_CHECKING */
140140

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

0 commit comments

Comments
 (0)