From: Howard Chu Date: Wed, 12 Dec 2012 06:21:52 +0000 (-0800) Subject: init_meta should write mapsize X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~79^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82b97a8af0f951d0c545d38de9e016a4674f83b7;p=openldap init_meta should write mapsize Was leaving it 0 initially. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e6f75406e1..8508dbd62f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2493,6 +2493,7 @@ mdb_env_init_meta(MDB_env *env, MDB_meta *meta) meta->mm_magic = MDB_MAGIC; meta->mm_version = MDB_VERSION; + meta->mm_mapsize = env->me_mapsize; meta->mm_psize = psize; meta->mm_last_pg = 1; meta->mm_flags = env->me_flags & 0xffff;