Commit dc43492e authored by Peter Geoghegan's avatar Peter Geoghegan

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 d168b666.
parent 0c4f355c
...@@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno, ...@@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
static void _bt_delitems_delete(Relation rel, Buffer buf, static void _bt_delitems_delete(Relation rel, Buffer buf,
TransactionId latestRemovedXid, TransactionId latestRemovedXid,
OffsetNumber *deletable, int ndeletable, OffsetNumber *deletable, int ndeletable,
BTVacuumPosting *updatable, int nupdatable, BTVacuumPosting *updatable, int nupdatable);
Relation heapRel);
static char *_bt_delitems_update(BTVacuumPosting *updatable, int nupdatable, static char *_bt_delitems_update(BTVacuumPosting *updatable, int nupdatable,
OffsetNumber *updatedoffsets, OffsetNumber *updatedoffsets,
Size *updatedbuflen, bool needswal); Size *updatedbuflen, bool needswal);
...@@ -1260,8 +1259,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf, ...@@ -1260,8 +1259,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
static void static void
_bt_delitems_delete(Relation rel, Buffer buf, TransactionId latestRemovedXid, _bt_delitems_delete(Relation rel, Buffer buf, TransactionId latestRemovedXid,
OffsetNumber *deletable, int ndeletable, OffsetNumber *deletable, int ndeletable,
BTVacuumPosting *updatable, int nupdatable, BTVacuumPosting *updatable, int nupdatable)
Relation heapRel)
{ {
Page page = BufferGetPage(buf); Page page = BufferGetPage(buf);
BTPageOpaque opaque; BTPageOpaque opaque;
...@@ -1650,7 +1648,7 @@ _bt_delitems_delete_check(Relation rel, Buffer buf, Relation heapRel, ...@@ -1650,7 +1648,7 @@ _bt_delitems_delete_check(Relation rel, Buffer buf, Relation heapRel,
/* Physically delete tuples (or TIDs) using deletable (or updatable) */ /* Physically delete tuples (or TIDs) using deletable (or updatable) */
_bt_delitems_delete(rel, buf, latestRemovedXid, deletable, ndeletable, _bt_delitems_delete(rel, buf, latestRemovedXid, deletable, ndeletable,
updatable, nupdatable, heapRel); updatable, nupdatable);
/* be tidy */ /* be tidy */
for (int i = 0; i < nupdatable; i++) for (int i = 0; i < nupdatable; i++)
......
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