Skip to content

Commit

Permalink
mdbx: корректировка излишне строгого условия в assert-проверке внутри…
Browse files Browse the repository at this point in the history
… `recalculate_subpage_thresholds()` (backport).
  • Loading branch information
erthink committed Feb 11, 2025
1 parent 24f2b9b commit 79572b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page-ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ void recalculate_subpage_thresholds(MDBX_env *env) {
env->subpage_reserve_prereq = page_space(env);
else if (env->subpage_reserve_prereq < env->subpage_room_threshold + env->subpage_reserve_limit)
env->subpage_reserve_prereq = env->subpage_room_threshold + env->subpage_reserve_limit;
eASSERT(env, env->subpage_reserve_prereq > env->subpage_room_threshold + env->subpage_reserve_limit);
eASSERT(env, env->subpage_reserve_prereq >= env->subpage_room_threshold + env->subpage_reserve_limit);
}

size_t page_subleaf2_reserve(const MDBX_env *env, size_t host_page_room, size_t subpage_len, size_t item_len) {
Expand Down

0 comments on commit 79572b4

Please sign in to comment.