mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 21:58:52 +00:00
Fix --db-sync-mode on Windows64
only "fastest" mode was working, others would SEGV.
This commit is contained in:
parent
4cf6e2b2c3
commit
d2a5f72f73
2
external/db_drivers/liblmdb/mdb.c
vendored
2
external/db_drivers/liblmdb/mdb.c
vendored
@ -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
Block a user