mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-15 22:54:31 +08:00
mdbx: добавление упущенного static
для txl_reserve()
.
This commit is contained in:
parent
bad6e3c2e2
commit
5ba257fafc
@ -37,7 +37,7 @@ void txl_free(txl_t txl) {
|
|||||||
osal_free(txl - 1);
|
osal_free(txl - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int txl_reserve(txl_t __restrict *__restrict ptxl, const size_t wanna) {
|
static int txl_reserve(txl_t __restrict *__restrict ptxl, const size_t wanna) {
|
||||||
const size_t allocated = (size_t)MDBX_PNL_ALLOCLEN(*ptxl);
|
const size_t allocated = (size_t)MDBX_PNL_ALLOCLEN(*ptxl);
|
||||||
assert(MDBX_PNL_GETSIZE(*ptxl) <= txl_max && MDBX_PNL_ALLOCLEN(*ptxl) >= MDBX_PNL_GETSIZE(*ptxl));
|
assert(MDBX_PNL_GETSIZE(*ptxl) <= txl_max && MDBX_PNL_ALLOCLEN(*ptxl) >= MDBX_PNL_GETSIZE(*ptxl));
|
||||||
if (likely(allocated >= wanna))
|
if (likely(allocated >= wanna))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user