ITS#7896 fix for mdb_env_map

Don't pass non-NULL map address unless MDB_FIXEDMAP was used.
robust
Howard Chu 11 years ago
parent 886ee41d55
commit 9049efe493
  1. 2
      libraries/liblmdb/mdb.c

@ -3841,7 +3841,7 @@ mdb_env_open2(MDB_env *env)
env->me_flags |= MDB_RESIZING;
}
rc = mdb_env_map(env, meta.mm_address);
rc = mdb_env_map(env, (flags & MDB_FIXEDMAP) ? meta.mm_address : NULL);
if (rc)
return rc;

Loading…
Cancel
Save