mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Move variable closer to where it is used
This avoids an unused variable warning on Windows when building without asserts From: David Rowley <dgrowleyml@gmail.com>
This commit is contained in:
parent
c0764a5425
commit
aa04b323c3
3
src/backend/utils/cache/relfilenodemap.c
vendored
3
src/backend/utils/cache/relfilenodemap.c
vendored
@ -213,8 +213,6 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
|
||||
|
||||
while (HeapTupleIsValid(ntp = systable_getnext(scandesc)))
|
||||
{
|
||||
bool isnull PG_USED_FOR_ASSERTS_ONLY;
|
||||
|
||||
if (found)
|
||||
elog(ERROR,
|
||||
"unexpected duplicate for tablespace %u, relfilenode %u",
|
||||
@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
if (assert_enabled)
|
||||
{
|
||||
bool isnull;
|
||||
Oid check;
|
||||
check = fastgetattr(ntp, Anum_pg_class_reltablespace,
|
||||
RelationGetDescr(relation),
|
||||
|
Loading…
Reference in New Issue
Block a user