Reorder function prototypes for consistency.
authorPeter Geoghegan
Fri, 1 May 2020 17:03:38 +0000 (10:03 -0700)
committerPeter Geoghegan
Fri, 1 May 2020 17:03:38 +0000 (10:03 -0700)
src/backend/access/nbtree/nbtpage.c

index 0e85e7c2040d994772169f91478d3e85f3dd6bc8..2238d90b8af56a53ea6e4197809d4c1089339d15 100644 (file)
 #include "utils/snapmgr.h"
 
 static BTMetaPageData *_bt_getmeta(Relation rel, Buffer metabuf);
+static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
+                              TransactionId latestRemovedXid);
+static TransactionId _bt_xid_horizon(Relation rel, Relation heapRel, Page page,
+                                    OffsetNumber *deletable, int ndeletable);
+static bool _bt_lock_branch_parent(Relation rel, BlockNumber child,
+                                  BTStack stack, Buffer *topparent, OffsetNumber *topoff,
+                                  BlockNumber *target, BlockNumber *rightsib);
 static bool _bt_mark_page_halfdead(Relation rel, Buffer leafbuf,
                                   BTStack stack);
 static bool _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf,
@@ -42,13 +49,6 @@ static bool _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf,
                                     bool *rightsib_empty,
                                     TransactionId *oldestBtpoXact,
                                     uint32 *ndeleted);
-static TransactionId _bt_xid_horizon(Relation rel, Relation heapRel, Page page,
-                                    OffsetNumber *deletable, int ndeletable);
-static bool _bt_lock_branch_parent(Relation rel, BlockNumber child,
-                                  BTStack stack, Buffer *topparent, OffsetNumber *topoff,
-                                  BlockNumber *target, BlockNumber *rightsib);
-static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
-                              TransactionId latestRemovedXid);
 
 /*
  * _bt_initmetapage() -- Fill a page buffer with a correct metapage image