mdbx: корректировка излишне строгого условия в assert-проверке внутри recalculate_subpage_thresholds().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2025-01-29 12:09:20 +03:00
parent b7206c68a5
commit 781c04f6e2

View File

@ -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) {