mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
MDB_VL32 - fix prev commit
Only tweak length for read-only envs
This commit is contained in:
parent
5eb25c5cb9
commit
9d75a82ae1
1 changed files with 2 additions and 2 deletions
|
|
@ -5803,8 +5803,8 @@ retry:
|
|||
id3.mref = 1;
|
||||
if (id3.mid)
|
||||
goto found;
|
||||
/* don't map past last written page */
|
||||
if (pgno + MDB_RPAGE_CHUNK-1 > txn->mt_last_pgno)
|
||||
/* don't map past last written page in read-only envs */
|
||||
if ((env->me_flags & MDB_RDONLY) && pgno + MDB_RPAGE_CHUNK-1 > txn->mt_last_pgno)
|
||||
id3.mcnt = txn->mt_last_pgno + 1 - pgno;
|
||||
else
|
||||
id3.mcnt = MDB_RPAGE_CHUNK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue