ITS#7896 fix for mdb_env_map

Don't pass non-NULL map address unless MDB_FIXEDMAP was used.
This commit is contained in:
Howard Chu 2014-07-14 09:51:16 -07:00
parent 886ee41d55
commit 9049efe493

View File

@ -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;