Fix envinfo to return fixed map address

incre
Howard Chu 11 years ago
parent 64191264b8
commit 6043103c13
  1. 2
      libraries/liblmdb/mdb.c

@ -8671,7 +8671,7 @@ mdb_env_info(MDB_env *env, MDB_envinfo *arg)
return EINVAL; return EINVAL;
toggle = mdb_env_pick_meta(env); toggle = mdb_env_pick_meta(env);
arg->me_mapaddr = (env->me_flags & MDB_FIXEDMAP) ? env->me_map : 0; arg->me_mapaddr = env->me_metas[toggle]->mm_address;
arg->me_mapsize = env->me_mapsize; arg->me_mapsize = env->me_mapsize;
arg->me_maxreaders = env->me_maxreaders; arg->me_maxreaders = env->me_maxreaders;

Loading…
Cancel
Save