Commit b78364df authored by Alvaro Herrera's avatar Alvaro Herrera

Remove unused arguments in two GiST subroutines

These arguments became unused in commit 2c03216d.  Noticed while
skimming code for unrelated development.

This is cosmetic, so no backpatch.
parent 8e1ad1b3
...@@ -467,7 +467,7 @@ gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate, ...@@ -467,7 +467,7 @@ gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate,
/* Write the WAL record */ /* Write the WAL record */
if (RelationNeedsWAL(rel)) if (RelationNeedsWAL(rel))
recptr = gistXLogSplit(rel->rd_node, blkno, is_leaf, recptr = gistXLogSplit(is_leaf,
dist, oldrlink, oldnsn, leftchildbuf, dist, oldrlink, oldnsn, leftchildbuf,
markfollowright); markfollowright);
else else
...@@ -523,7 +523,7 @@ gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate, ...@@ -523,7 +523,7 @@ gistplacetopage(Relation rel, Size freespace, GISTSTATE *giststate,
ndeloffs = 1; ndeloffs = 1;
} }
recptr = gistXLogUpdate(rel->rd_node, buffer, recptr = gistXLogUpdate(buffer,
deloffs, ndeloffs, itup, ntup, deloffs, ndeloffs, itup, ntup,
leftchildbuf); leftchildbuf);
...@@ -1541,7 +1541,7 @@ gistvacuumpage(Relation rel, Page page, Buffer buffer) ...@@ -1541,7 +1541,7 @@ gistvacuumpage(Relation rel, Page page, Buffer buffer)
{ {
XLogRecPtr recptr; XLogRecPtr recptr;
recptr = gistXLogUpdate(rel->rd_node, buffer, recptr = gistXLogUpdate(buffer,
deletable, ndeletable, deletable, ndeletable,
NULL, 0, InvalidBuffer); NULL, 0, InvalidBuffer);
......
...@@ -223,7 +223,7 @@ gistbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats, ...@@ -223,7 +223,7 @@ gistbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
{ {
XLogRecPtr recptr; XLogRecPtr recptr;
recptr = gistXLogUpdate(rel->rd_node, buffer, recptr = gistXLogUpdate(buffer,
todelete, ntodelete, todelete, ntodelete,
NULL, 0, InvalidBuffer); NULL, 0, InvalidBuffer);
PageSetLSN(page, recptr); PageSetLSN(page, recptr);
......
...@@ -323,7 +323,7 @@ gist_xlog_cleanup(void) ...@@ -323,7 +323,7 @@ gist_xlog_cleanup(void)
* Write WAL record of a page split. * Write WAL record of a page split.
*/ */
XLogRecPtr XLogRecPtr
gistXLogSplit(RelFileNode node, BlockNumber blkno, bool page_is_leaf, gistXLogSplit(bool page_is_leaf,
SplitedPageLayout *dist, SplitedPageLayout *dist,
BlockNumber origrlink, GistNSN orignsn, BlockNumber origrlink, GistNSN orignsn,
Buffer leftchildbuf, bool markfollowright) Buffer leftchildbuf, bool markfollowright)
...@@ -387,7 +387,7 @@ gistXLogSplit(RelFileNode node, BlockNumber blkno, bool page_is_leaf, ...@@ -387,7 +387,7 @@ gistXLogSplit(RelFileNode node, BlockNumber blkno, bool page_is_leaf,
* to log the whole buffer contents instead. * to log the whole buffer contents instead.
*/ */
XLogRecPtr XLogRecPtr
gistXLogUpdate(RelFileNode node, Buffer buffer, gistXLogUpdate(Buffer buffer,
OffsetNumber *todelete, int ntodelete, OffsetNumber *todelete, int ntodelete,
IndexTuple *itup, int ituplen, IndexTuple *itup, int ituplen,
Buffer leftchildbuf) Buffer leftchildbuf)
......
...@@ -465,13 +465,12 @@ extern const char *gist_identify(uint8 info); ...@@ -465,13 +465,12 @@ extern const char *gist_identify(uint8 info);
extern void gist_xlog_startup(void); extern void gist_xlog_startup(void);
extern void gist_xlog_cleanup(void); extern void gist_xlog_cleanup(void);
extern XLogRecPtr gistXLogUpdate(RelFileNode node, Buffer buffer, extern XLogRecPtr gistXLogUpdate(Buffer buffer,
OffsetNumber *todelete, int ntodelete, OffsetNumber *todelete, int ntodelete,
IndexTuple *itup, int ntup, IndexTuple *itup, int ntup,
Buffer leftchild); Buffer leftchild);
extern XLogRecPtr gistXLogSplit(RelFileNode node, extern XLogRecPtr gistXLogSplit(bool page_is_leaf,
BlockNumber blkno, bool page_is_leaf,
SplitedPageLayout *dist, SplitedPageLayout *dist,
BlockNumber origrlink, GistNSN oldnsn, BlockNumber origrlink, GistNSN oldnsn,
Buffer leftchild, bool markfollowright); Buffer leftchild, bool markfollowright);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment