Fix --db-sync-mode on Windows64
only "fastest" mode was working, others would SEGV.
This commit is contained in:
parent
4cf6e2b2c3
commit
d2a5f72f73
|
@ -2429,7 +2429,7 @@ mdb_page_alloc(MDB_cursor *mc, int num, MDB_page **mp)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (env->me_flags & MDB_WRITEMAP) {
|
if (!(env->me_flags & MDB_RDONLY)) {
|
||||||
void *p;
|
void *p;
|
||||||
p = (MDB_page *)(env->me_map + env->me_psize * pgno);
|
p = (MDB_page *)(env->me_map + env->me_psize * pgno);
|
||||||
p = VirtualAlloc(p, env->me_psize * num, MEM_COMMIT,
|
p = VirtualAlloc(p, env->me_psize * num, MEM_COMMIT,
|
||||||
|
|
Loading…
Reference in New Issue