From 3f241365d5b3c0afdca888248a90a137d0b8b3d5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 12 Jan 2014 17:37:04 -0800 Subject: [PATCH] Make sure mapsize changes take effect on Windows. --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index b6e2f84..6ca890f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3556,7 +3556,7 @@ mdb_env_open2(MDB_env *env) env->me_mapsize = minsize; } - rc = mdb_env_map(env, meta.mm_address, newenv); + rc = mdb_env_map(env, meta.mm_address, newenv || env->me_mapsize != meta.mm_mapsize); if (rc) return rc;