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

Commitd8d5e1a

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 parentf495b65 commitd8d5e1a

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)

[8]ページ先頭

©2009-2025 Movatter.jp