mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#8324 fix c4e31434c7
Actually, there is no guarantee that Windows will map newly written data, so we need VirtualAlloc even for non-WRITEMAP.
This commit is contained in:
parent
d6995599b4
commit
a6ccef73ed
1 changed files with 1 additions and 1 deletions
|
|
@ -2429,7 +2429,7 @@ mdb_page_alloc(MDB_cursor *mc, int num, MDB_page **mp)
|
|||
goto fail;
|
||||
}
|
||||
#ifdef _WIN32
|
||||
if (env->me_flags & MDB_WRITEMAP) {
|
||||
if (!(env->me_flags & MDB_RDONLY)) {
|
||||
void *p;
|
||||
p = (MDB_page *)(env->me_map + env->me_psize * pgno);
|
||||
p = VirtualAlloc(p, env->me_psize * num, MEM_COMMIT,
|
||||
|
|
|
|||
Loading…
Reference in a new issue