From 6f8b48a16840a52c33ff86b277c2830145b1e763 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 9 Dec 2015 23:08:10 +0000 Subject: [PATCH] set_mapsize is basically a no-op in VL32 --- libraries/liblmdb/mdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 0d4ae22..0d7c02f 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -4156,6 +4156,7 @@ mdb_env_map(MDB_env *env, void *addr) int ESECT mdb_env_set_mapsize(MDB_env *env, mdb_size_t size) { +#ifndef MDB_VL32 /* If env is already open, caller is responsible for making * sure there are no active txns. */ @@ -4181,6 +4182,7 @@ mdb_env_set_mapsize(MDB_env *env, mdb_size_t size) if (rc) return rc; } +#endif /* !MDB_VL32 */ env->me_mapsize = size; if (env->me_psize) env->me_maxpg = env->me_mapsize / env->me_psize;