Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc43492

Browse files
Remove unused _bt_delitems_delete() argument.
The latestRemovedXid values used by nbtree deletion operations aredetermined by _bt_delitems_delete()'s caller, so there is no reason topass a separate heapRel argument.Oversight in commitd168b66.
1 parent0c4f355 commitdc43492

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/backend/access/nbtree/nbtpage.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
4141
staticvoid_bt_delitems_delete(Relationrel,Bufferbuf,
4242
TransactionIdlatestRemovedXid,
4343
OffsetNumber*deletable,intndeletable,
44-
BTVacuumPosting*updatable,intnupdatable,
45-
RelationheapRel);
44+
BTVacuumPosting*updatable,intnupdatable);
4645
staticchar*_bt_delitems_update(BTVacuumPosting*updatable,intnupdatable,
4746
OffsetNumber*updatedoffsets,
4847
Size*updatedbuflen,boolneedswal);
@@ -1260,8 +1259,7 @@ _bt_delitems_vacuum(Relation rel, Buffer buf,
12601259
staticvoid
12611260
_bt_delitems_delete(Relationrel,Bufferbuf,TransactionIdlatestRemovedXid,
12621261
OffsetNumber*deletable,intndeletable,
1263-
BTVacuumPosting*updatable,intnupdatable,
1264-
RelationheapRel)
1262+
BTVacuumPosting*updatable,intnupdatable)
12651263
{
12661264
Pagepage=BufferGetPage(buf);
12671265
BTPageOpaqueopaque;
@@ -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 (inti=0;i<nupdatable;i++)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp