aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-01-16 16:11:11 +0000
committerHoward Chu <hyc@symas.com>2016-01-16 16:11:11 +0000
commitd2a5f72f73e0e4030b521086b13b8c8efaf9ca9e (patch)
tree70976b6b88e1b7d9094aeb03dfd46de3334a03a8
parentFix 30f92f5630bbc7507708275a29a9ae7acf633a5b (diff)
downloadmonero-d2a5f72f73e0e4030b521086b13b8c8efaf9ca9e.tar.xz
Fix --db-sync-mode on Windows64
only "fastest" mode was working, others would SEGV.
Diffstat (limited to '')
-rw-r--r--external/db_drivers/liblmdb/mdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c
index ae32c9896..5d57f8b15 100644
--- a/external/db_drivers/liblmdb/mdb.c
+++ b/external/db_drivers/liblmdb/mdb.c
@@ -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,