Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dc43492

Browse files
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 d168b66.
1 parent 0c4f355 commit dc43492

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/backend/access/nbtree/nbtpage.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
4141
static void _bt_delitems_delete(Relation rel, Buffer buf,
4242
TransactionId latestRemovedXid,
4343
OffsetNumber *deletable, int ndeletable,
44-
BTVacuumPosting *updatable, int nupdatable,
45-
Relation heapRel);
44+
BTVacuumPosting *updatable, int nupdatable);
4645
static char *_bt_delitems_update(BTVacuumPosting *updatable, int nupdatable,
4746
OffsetNumber *updatedoffsets,
4847
Size *updatedbuflen, bool needswal);
@@ -1260,8 +1259,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
12601259
static void
12611260
_bt_delitems_delete(Relation rel, Buffer buf, TransactionId latestRemovedXid,
12621261
OffsetNumber *deletable, int ndeletable,
1263-
BTVacuumPosting *updatable, int nupdatable,
1264-
Relation heapRel)
1262+
BTVacuumPosting *updatable, int nupdatable)
12651263
{
12661264
Page page = BufferGetPage(buf);
12671265
BTPageOpaque opaque;
@@ -1650,7 +1648,7 @@ _bt_delitems_delete_check(Relation rel, Buffer buf, Relation heapRel,
16501648

16511649
/* Physically delete tuples (or TIDs) using deletable (or updatable) */
16521650
_bt_delitems_delete(rel, buf, latestRemovedXid, deletable, ndeletable,
1653-
updatable, nupdatable, heapRel);
1651+
updatable, nupdatable);
16541652

16551653
/* be tidy */
16561654
for (int i = 0; i < nupdatable; i++)

0 commit comments

Comments
 (0)