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

Commitaa04b32

Browse files
committed
Move variable closer to where it is used
This avoids an unused variable warning on Windows when building withoutassertsFrom: David Rowley <dgrowleyml@gmail.com>
1 parentc0764a5 commitaa04b32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/backend/utils/cache/relfilenodemap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
213213

214214
while (HeapTupleIsValid(ntp=systable_getnext(scandesc)))
215215
{
216-
boolisnullPG_USED_FOR_ASSERTS_ONLY;
217-
218216
if (found)
219217
elog(ERROR,
220218
"unexpected duplicate for tablespace %u, relfilenode %u",
@@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
224222
#ifdefUSE_ASSERT_CHECKING
225223
if (assert_enabled)
226224
{
225+
boolisnull;
227226
Oidcheck;
228227
check=fastgetattr(ntp,Anum_pg_class_reltablespace,
229228
RelationGetDescr(relation),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp