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

Commit1343ae9

Browse files
Give nbtree move right function internal linkage.
Declare _bt_moveright() static. This is a minor modularity win; theroutine was already private to nbtsearch.c for all practical purposes.Author: Matthias van de Meent <boekewurm+postgres@gmail.com>Discussion:https://postgr.es/m/CAEze2WgWVzCNEXQB_op5MMZMDgJ3fg3AhVm6bq2iZPpJNXGhWw@mail.gmail.com
1 parent2aecbd7 commit1343ae9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727

2828
staticvoid_bt_drop_lock_and_maybe_pin(IndexScanDescscan,BTScanPossp);
29+
staticBuffer_bt_moveright(Relationrel,Relationheaprel,BTScanInsertkey,
30+
Bufferbuf,boolforupdate,BTStackstack,
31+
intaccess);
2932
staticOffsetNumber_bt_binsrch(Relationrel,BTScanInsertkey,Bufferbuf);
3033
staticint_bt_binsrch_posting(BTScanInsertkey,Pagepage,
3134
OffsetNumberoffnum);
@@ -231,7 +234,7 @@ _bt_search(Relation rel, Relation heaprel, BTScanInsert key, Buffer *bufP,
231234
* 'access'. If we move right, we release the buffer and lock and acquire
232235
* the same on the right sibling. Return value is the buffer we stop at.
233236
*/
234-
Buffer
237+
staticBuffer
235238
_bt_moveright(Relationrel,
236239
Relationheaprel,
237240
BTScanInsertkey,

‎src/include/access/nbtree.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,9 +1272,6 @@ extern void _bt_pendingfsm_finalize(Relation rel, BTVacState *vstate);
12721272
*/
12731273
externBTStack_bt_search(Relationrel,Relationheaprel,BTScanInsertkey,
12741274
Buffer*bufP,intaccess);
1275-
externBuffer_bt_moveright(Relationrel,Relationheaprel,BTScanInsertkey,
1276-
Bufferbuf,boolforupdate,BTStackstack,
1277-
intaccess);
12781275
externOffsetNumber_bt_binsrch_insert(Relationrel,BTInsertStateinsertstate);
12791276
externint32_bt_compare(Relationrel,BTScanInsertkey,Pagepage,OffsetNumberoffnum);
12801277
externbool_bt_first(IndexScanDescscan,ScanDirectiondir);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp