Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b40d40

Browse files
committed
Fix unused variable compiler warning in !debug builds.
Introduced in3dbb317. Fix by using the new local variable in moreplaces.Reported-By: Bruce Momjian (off-list)Backpatch: 9.4-, like3dbb317
1 parentb06a354 commit4b40d40

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)

[8]ページ先頭

©2009-2025 Movatter.jp