Commit 3f241365 authored by Howard Chu's avatar Howard Chu
Browse files

Make sure mapsize changes take effect on Windows.

parent 5bda3565
...@@ -3556,7 +3556,7 @@ mdb_env_open2(MDB_env *env) ...@@ -3556,7 +3556,7 @@ mdb_env_open2(MDB_env *env)
env->me_mapsize = minsize; 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) if (rc)
return rc; return rc;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment