mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08:00
mdbx: force mdbx_page_get()
to inline.
This commit is contained in:
parent
78170a5750
commit
fb25648b9c
@ -3733,10 +3733,10 @@ static int mdbx_txn_end(MDBX_txn *txn, const unsigned mode);
|
||||
|
||||
__hot static struct page_result __must_check_result
|
||||
mdbx_page_get_ex(MDBX_cursor *const mc, const pgno_t pgno, txnid_t front);
|
||||
static __inline int __must_check_result mdbx_page_get(MDBX_cursor *mc,
|
||||
pgno_t pgno,
|
||||
MDBX_page **mp,
|
||||
txnid_t front) {
|
||||
static __always_inline int __must_check_result mdbx_page_get(MDBX_cursor *mc,
|
||||
pgno_t pgno,
|
||||
MDBX_page **mp,
|
||||
txnid_t front) {
|
||||
|
||||
struct page_result ret = mdbx_page_get_ex(mc, pgno, front);
|
||||
*mp = ret.page;
|
||||
|
Loading…
x
Reference in New Issue
Block a user