mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 23:24:14 +08:00
mdbx: fix typo.
Change-Id: Ib491469a2a7ebb6bdadf995fa3a964d23fdf7036
This commit is contained in:
parent
c91885de67
commit
7b8a1c9794
@ -1864,11 +1864,10 @@ static int mdbx_page_alloc(MDBX_cursor *mc, unsigned num, MDBX_page **mp,
|
|||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Refund suitable pages into "unallocated" pull */
|
|
||||||
mdbx_tassert(txn,
|
mdbx_tassert(txn,
|
||||||
repg_len == 0 || repg_list[repg_len] < txn->mt_next_pgno);
|
repg_len == 0 || repg_list[repg_len] < txn->mt_next_pgno);
|
||||||
if (repg_len) {
|
if (repg_len) {
|
||||||
/* Refund suitable pages into "unallocated" pull */
|
/* Refund suitable pages into "unallocated" space */
|
||||||
pgno_t tail = txn->mt_next_pgno;
|
pgno_t tail = txn->mt_next_pgno;
|
||||||
pgno_t *const begin = repg_list + 1;
|
pgno_t *const begin = repg_list + 1;
|
||||||
pgno_t *const end = begin + repg_len;
|
pgno_t *const end = begin + repg_len;
|
||||||
@ -3074,7 +3073,7 @@ again_on_freelist_change:
|
|||||||
|
|
||||||
mdbx_tassert(txn, mdbx_pnl_check(env->me_reclaimed_pglist));
|
mdbx_tassert(txn, mdbx_pnl_check(env->me_reclaimed_pglist));
|
||||||
if (env->me_reclaimed_pglist) {
|
if (env->me_reclaimed_pglist) {
|
||||||
/* Refund suitable pages into "unallocated" pull */
|
/* Refund suitable pages into "unallocated" space */
|
||||||
pgno_t tail = txn->mt_next_pgno;
|
pgno_t tail = txn->mt_next_pgno;
|
||||||
pgno_t *const begin = env->me_reclaimed_pglist + 1;
|
pgno_t *const begin = env->me_reclaimed_pglist + 1;
|
||||||
pgno_t *const end = begin + env->me_reclaimed_pglist[0];
|
pgno_t *const end = begin + env->me_reclaimed_pglist[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user