aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2021-01-31 10:10:55 -0800
committerPeter Geoghegan <pg@bowt.ie>2021-01-31 10:10:55 -0800
commitdc43492e46c7145a476cb8ca6200fc8eefe673ef (patch)
treee480be10498373f04d7ba31deab87574e87917f4 /src
parent0c4f355c6a5fd437f71349f2f3d5d491382572b7 (diff)
downloadpostgresql-dc43492e46c7145a476cb8ca6200fc8eefe673ef.tar.gz
postgresql-dc43492e46c7145a476cb8ca6200fc8eefe673ef.zip
Remove unused _bt_delitems_delete() argument.
The latestRemovedXid values used by nbtree deletion operations are determined by _bt_delitems_delete()'s caller, so there is no reason to pass a separate heapRel argument. Oversight in commit d168b666823.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/nbtree/nbtpage.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/access/nbtree/nbtpage.c b/src/backend/access/nbtree/nbtpage.c
index e230f912c28..41dc3f8fdff 100644
--- a/src/backend/access/nbtree/nbtpage.c
+++ b/src/backend/access/nbtree/nbtpage.c
@@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
static void _bt_delitems_delete(Relation rel, Buffer buf,
TransactionId latestRemovedXid,
OffsetNumber *deletable, int ndeletable,
- BTVacuumPosting *updatable, int nupdatable,
- Relation heapRel);
+ BTVacuumPosting *updatable, int nupdatable);
static char *_bt_delitems_update(BTVacuumPosting *updatable, int nupdatable,
OffsetNumber *updatedoffsets,
Size *updatedbuflen, bool needswal);
@@ -1260,8 +1259,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
static void
_bt_delitems_delete(Relation rel, Buffer buf, TransactionId latestRemovedXid,
OffsetNumber *deletable, int ndeletable,
- BTVacuumPosting *updatable, int nupdatable,
- Relation heapRel)
+ BTVacuumPosting *updatable, int nupdatable)
{
Page page = BufferGetPage(buf);
BTPageOpaque opaque;
@@ -1650,7 +1648,7 @@ _bt_delitems_delete_check(Relation rel, Buffer buf, Relation heapRel,
/* Physically delete tuples (or TIDs) using deletable (or updatable) */
_bt_delitems_delete(rel, buf, latestRemovedXid, deletable, ndeletable,
- updatable, nupdatable, heapRel);
+ updatable, nupdatable);
/* be tidy */
for (int i = 0; i < nupdatable; i++)