mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
ITS#9920 lmdb: fix page offset when converting subpage to real page
offset needs to account for additional space at page tail
This commit is contained in:
parent
c277aed15a
commit
1e7891c016
1 changed files with 1 additions and 1 deletions
|
|
@ -8593,7 +8593,7 @@ prep_subDB:
|
|||
if ((rc = mdb_page_alloc(mc, 1, &mp)))
|
||||
return rc;
|
||||
fp_flags |= mp->mp_flags; /* P_ADM_FLAGS */
|
||||
offset = env->me_psize - olddata.mv_size;
|
||||
offset = env->me_pagespace + PAGEHDRSZ - olddata.mv_size;
|
||||
flags |= F_DUPDATA|F_SUBDATA;
|
||||
dummy.md_root = mp->mp_pgno;
|
||||
sub_root = mp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue