mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Merge remote-tracking branch 'origin/mdb.master'
This commit is contained in:
commit
c264d70fbe
1 changed files with 4 additions and 0 deletions
|
|
@ -3128,6 +3128,10 @@ mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mode_t mode)
|
|||
if (rc)
|
||||
goto leave;
|
||||
|
||||
/* silently ignore WRITEMAP if we're only getting read access */
|
||||
if (F_ISSET(flags, MDB_RDONLY) && F_ISSET(flags, MDB_WRITEMAP))
|
||||
flags ^= MDB_WRITEMAP;
|
||||
|
||||
#ifdef _WIN32
|
||||
if (F_ISSET(flags, MDB_RDONLY)) {
|
||||
oflags = GENERIC_READ;
|
||||
|
|
|
|||
Loading…
Reference in a new issue