mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 00:07:38 +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
1 changed files with 1 additions and 1 deletions
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;
|
||||
}
|
||||
#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