]> granicus.if.org Git - postgresql/commit
Remove unneeded argument from _bt_getstackbuf().
authorPeter Geoghegan <pg@bowt.ie>
Tue, 26 Feb 2019 01:47:43 +0000 (17:47 -0800)
committerPeter Geoghegan <pg@bowt.ie>
Tue, 26 Feb 2019 01:47:43 +0000 (17:47 -0800)
commit2ab23445bc6af517bddb40d8429146d8ff8d7ff4
treeedb02d52bf39ee44dd229d7886d35484df9aa5f7
parent067786cea0f150ccf9350abb9a5ac3e4ad328804
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.
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c
src/include/access/nbtree.h