From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unneeded argument from _bt_getstackbuf().
Date: Tue, 26 Feb 2019 01:49:16 +0000
Message-ID: <E1gyRrw-0006L8-HJ@gemulon.postgresql.org> (raw)
Remove unneeded argument from _bt_getstackbuf().
_bt_getstackbuf() is called at exactly two points following commit
efada2b8e92 (one call site is concerned with page splits, while the
other is concerned with page deletion). The parent buffer returned by
_bt_getstackbuf() is write-locked in both cases. Remove the 'access'
argument and make _bt_getstackbuf() assume that callers require a
write-lock.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2ab23445bc6af517bddb40d8429146d8ff8d7ff4
Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 11 ++++++-----
src/backend/access/nbtree/nbtpage.c | 2 +-
src/include/access/nbtree.h | 2 +-
3 files changed, 8 insertions(+), 7 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: pg@bowt.ie
Subject: Re: pgsql: Remove unneeded argument from _bt_getstackbuf().
In-Reply-To: <E1gyRrw-0006L8-HJ@gemulon.postgresql.org>
References: <E1gyRrw-0006L8-HJ@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox