Make sure mapsize changes take effect on Windows.

vmware
Howard Chu 11 years ago
parent 5bda3565a9
commit 3f241365d5
  1. 2
      libraries/liblmdb/mdb.c

@ -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;

Loading…
Cancel
Save