mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03: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)))
|
while (HeapTupleIsValid(ntp = systable_getnext(scandesc)))
|
||||||
{
|
{
|
||||||
bool isnull PG_USED_FOR_ASSERTS_ONLY;
|
|
||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
elog(ERROR,
|
elog(ERROR,
|
||||||
"unexpected duplicate for tablespace %u, relfilenode %u",
|
"unexpected duplicate for tablespace %u, relfilenode %u",
|
||||||
@ -224,6 +222,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
|
|||||||
#ifdef USE_ASSERT_CHECKING
|
#ifdef USE_ASSERT_CHECKING
|
||||||
if (assert_enabled)
|
if (assert_enabled)
|
||||||
{
|
{
|
||||||
|
bool isnull;
|
||||||
Oid check;
|
Oid check;
|
||||||
check = fastgetattr(ntp, Anum_pg_class_reltablespace,
|
check = fastgetattr(ntp, Anum_pg_class_reltablespace,
|
||||||
RelationGetDescr(relation),
|
RelationGetDescr(relation),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user