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:
Peter Eisentraut 2013-11-13 06:26:27 -05:00
parent c0764a5425
commit aa04b323c3

View File

@ -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),