Skip to content

Commit 4b40d40

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 b06a354 commit 4b40d40

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

144144
/*
145145
* FormIndexDatum fills in its values and isnull parameters with the
@@ -154,12 +154,12 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
154154
/*
155155
* The index AM does the rest.
156156
*/
157-
index_insert(relationDescs[i], /* index relation */
157+
index_insert(index, /* index relation */
158158
values, /* array of index Datums */
159159
isnull, /* is-null flags */
160160
&(heapTuple->t_self), /* tid of heap tuple */
161161
heapRelation,
162-
relationDescs[i]->rd_index->indisunique ?
162+
index->rd_index->indisunique ?
163163
UNIQUE_CHECK_YES : UNIQUE_CHECK_NO,
164164
indexInfo);
165165
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy