From f7f94bb698621e0ff174363e6951ef7d0057a8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Mon, 7 Nov 2022 10:57:42 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D1=87=D1=83=D1=82=D1=8C=20=D0=B1=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D1=88=D0=B5=20`const`=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B7=D1=80=D0=B0=D1=87=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 10e874aa..139f8d85 100644 --- a/src/core.c +++ b/src/core.c @@ -6620,7 +6620,7 @@ static int gc_cursor_init(MDBX_cursor *mc, MDBX_txn *txn) { return cursor_init(mc, txn, FREE_DBI); } -static pgr_t page_alloc_slowpath(MDBX_cursor *mc, const size_t num, +static pgr_t page_alloc_slowpath(const MDBX_cursor *mc, const size_t num, char flags) { #if MDBX_ENABLE_PROFGC const uint64_t monotime_before = osal_monotime(); @@ -7148,7 +7148,7 @@ done: return ret; } -__hot static pgr_t page_alloc(MDBX_cursor *mc) { +__hot static pgr_t page_alloc(const MDBX_cursor *mc) { MDBX_txn *const txn = mc->mc_txn; /* If there are any loose pages, just use them */