mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#7896 fix for mdb_env_map
Don't pass non-NULL map address unless MDB_FIXEDMAP was used.
This commit is contained in:
parent
886ee41d55
commit
9049efe493
@ -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…
Reference in New Issue
Block a user