Skip to content

Commit 9566cf6

Browse files
committed
Fix compiler warning
1 parent bbe42b7 commit 9566cf6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/access/heap/ptrack.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,16 @@ ptrack_get_and_clear(Oid tablespace_oid, Oid table_oid)
276276
{
277277
bytea *result = NULL;
278278
BlockNumber nblock;
279+
Relation rel;
280+
279281
if (table_oid == InvalidOid)
280282
{
281283
elog(WARNING, "InvalidOid");
282284
goto full_end;
283285
}
284286

285-
Relation rel = RelationIdGetRelation(RelidByRelfilenode(tablespace_oid,
287+
rel = RelationIdGetRelation(RelidByRelfilenode(tablespace_oid,
286288
table_oid));
287-
288289
if (rel == InvalidRelation)
289290
{
290291
elog(WARNING, "InvalidRelation");

0 commit comments

Comments
 (0)