From: Peter Geoghegan Date: Mon, 16 Mar 2020 03:53:12 +0000 (-0700) Subject: nbtree: Reorder nbtinsert.c prototypes. X-Git-Tag: REL_13_BETA1~555 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f207bb0b8f13999c91b405a2e6c8526225470816;p=thirdparty%2Fpostgresql.git nbtree: Reorder nbtinsert.c prototypes. Relocate _bt_newroot() prototype, so that the order that prototypes appear in matches the order that the functions are defined in. --- diff --git a/src/backend/access/nbtree/nbtinsert.c b/src/backend/access/nbtree/nbtinsert.c index 849a16ac28b..259cd078c2e 100644 --- a/src/backend/access/nbtree/nbtinsert.c +++ b/src/backend/access/nbtree/nbtinsert.c @@ -29,8 +29,6 @@ #define BTREE_FASTPATH_MIN_LEVEL 2 -static Buffer _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf); - static TransactionId _bt_check_unique(Relation rel, BTInsertState insertstate, Relation heapRel, IndexUniqueCheck checkUnique, bool *is_unique, @@ -55,6 +53,7 @@ static Buffer _bt_split(Relation rel, BTScanInsert itup_key, Buffer buf, IndexTuple nposting, uint16 postingoff); static void _bt_insert_parent(Relation rel, Buffer buf, Buffer rbuf, BTStack stack, bool is_root, bool is_only); +static Buffer _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf); static bool _bt_pgaddtup(Page page, Size itemsize, IndexTuple itup, OffsetNumber itup_off); static void _bt_vacuum_one_page(Relation rel, Buffer buffer, Relation heapRel);