_pg_relbuf() Relation paramter - Mailing list pgsql-hackers

From Kevin Grittner
Subject _pg_relbuf() Relation paramter
Date
Msg-id 1296347715.1326270.1423061396863.JavaMail.yahoo@mail.yahoo.com
Whole thread Raw
Responses Re: _pg_relbuf() Relation paramter
Re: _pg_relbuf() Relation paramter
List pgsql-hackers
I ran across this function in nbtpage.c:

/** _bt_relbuf() -- release a locked buffer.** Lock and pin (refcount) are both dropped.*/
void
_bt_relbuf(Relation rel, Buffer buf)
{   UnlockReleaseBuffer(buf);
}

Would anyone object to me removing the first parameter (including,
obviously, in all references in our code tree)?

If there is an objection, could you suggest something for the
comment block to explain why it is there?

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Getting rid of wal_level=archive and default to hot_standby + wal_senders
Next
From: Tom Lane
Date:
Subject: Re: ecpg array support, or lack thereof