Skip to content

Commit 795cec8

Browse files
committed
mdbx: fix counting of nested trees for multi-values/dupsort hives.
2026-02-10 mdbx: fix counting of nested trees for multi-values/dupsort hives. 2026-02-09 mdbx: refactoring/split-out `gc_merge_loose()`. 2026-02-09 mdbx: refactoring/split-out `pnl_scan_span()`. 2026-02-08 mdbx: alter/move-forward a detent of reclaiming (unhides the secret bonus). 2026-02-07 mdbx: refactoring/split-out `gc_may_clean_reclaimed()`. 2026-02-07 mdbx: add `rkl_reserve()`. 2026-02-07 mdbx: refactoring/split-out `gc_cursor_init()`. 2026-02-06 mdbx: refactoring/move/extract `tbl_stat_summary()`.
1 parent ee85827 commit 795cec8

File tree

13 files changed

+154
-139
lines changed

13 files changed

+154
-139
lines changed

VERSION.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "git_describe": "v0.14.1-396-g9a6d94ec", "git_timestamp": "2026-02-07T22:23:25+03:00", "git_tree": "34c2da455d5b1aa8c633761b8e8f6886d9ffa83a", "git_commit": "9a6d94ec6180d9aa65a5328d57357ecf49098f1c", "semver": "0.14.1.396" }
1+
{ "git_describe": "v0.14.1-404-g2ed89b6e", "git_timestamp": "2026-02-10T17:18:11+03:00", "git_tree": "0875d78810b7a65e9f93114ba13f96ad96506697", "git_commit": "2ed89b6ed8e8aec31f78344299d41f9dca993ca6", "semver": "0.14.1.404" }

config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* This file is part of the libmdbx amalgamated source code (v0.14.1-396-g9a6d94ec at 2026-02-07T22:23:25+03:00),
1+
/* This file is part of the libmdbx amalgamated source code (v0.14.1-404-g2ed89b6e at 2026-02-10T17:18:11+03:00),
22
* it is the template for libmdbx's config.h
33
******************************************************************************/
44

mdbx-internals.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* This file is part of the libmdbx amalgamated source code (v0.14.1-396-g9a6d94ec at 2026-02-07T22:23:25+03:00).
1+
/* This file is part of the libmdbx amalgamated source code (v0.14.1-404-g2ed89b6e at 2026-02-10T17:18:11+03:00).
22
*
33
* libmdbx (aka MDBX) is an extremely fast, compact, powerful, embeddedable, transactional key-value storage engine with
44
* open-source code. MDBX has a specific set of properties and capabilities, focused on creating unique lightweight
@@ -24,7 +24,7 @@
2424

2525
#define xMDBX_ALLOY 1 /* alloyed build */
2626

27-
#define MDBX_BUILD_SOURCERY e954e765df2bcb8c41aacbf1c507d7b7630cd5a45dd13ff36585bde3002dbdc8_v0_14_1_396_g9a6d94ec
27+
#define MDBX_BUILD_SOURCERY b5b59d95cd848efe0a65ab0f2d6cb9e990eee3fc556a094ba47684f6189b8b0e_v0_14_1_404_g2ed89b6e
2828

2929
#define LIBMDBX_INTERNALS
3030
#define MDBX_DEPRECATED
@@ -3456,6 +3456,15 @@ MDBX_INTERNAL size_t pnl_merge(pnl_t dst, const const_pnl_t src);
34563456

34573457
MDBX_MAYBE_UNUSED MDBX_NOTHROW_PURE_FUNCTION MDBX_INTERNAL size_t pnl_maxspan(const const_pnl_t pnl);
34583458

3459+
MDBX_MAYBE_UNUSED MDBX_NOTHROW_PURE_FUNCTION static inline size_t pnl_scan_span(const const_pnl_t pnl,
3460+
const size_t from) {
3461+
size_t span = 1;
3462+
assert(from > 0 && from <= pnl_size(pnl));
3463+
while (from + span <= pnl_size(pnl) && MDBX_PNL_CONTIGUOUS(pnl[from], pnl[from + span], span))
3464+
++span;
3465+
return span;
3466+
}
3467+
34593468
#endif /* !__cplusplus */
34603469

34613470
#ifdef __cplusplus

0 commit comments

Comments
 (0)