From: Howard Chu Date: Mon, 13 Jan 2014 01:37:04 +0000 (-0800) Subject: Make sure mapsize changes take effect on Windows. X-Git-Tag: OPENLDAP_REL_ENG_2_4_39~2^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3f241365d5b3c0afdca888248a90a137d0b8b3d5;p=openldap Make sure mapsize changes take effect on Windows. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index b6e2f842c7..6ca890fdf3 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;