diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-01-17 22:30:05 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-01-17 22:30:05 +0200 |
commit | d42aca8756f6e01aa080a92d300ae1879bede530 (patch) | |
tree | 70976b6b88e1b7d9094aeb03dfd46de3334a03a8 /external | |
parent | Merge pull request #613 (diff) | |
parent | Fix --db-sync-mode on Windows64 (diff) | |
download | monero-d42aca8756f6e01aa080a92d300ae1879bede530.tar.xz |
Merge pull request #614
d2a5f72 Fix --db-sync-mode on Windows64 (Howard Chu)
4cf6e2b Fix 30f92f5630bbc7507708275a29a9ae7acf633a5b (Howard Chu)
Diffstat (limited to 'external')
-rw-r--r-- | external/db_drivers/liblmdb/mdb.c | 2 |
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, |