From: Hallvard Furuseth Date: Mon, 17 Sep 2012 13:42:14 +0000 (+0200) Subject: MDB_WRITEMAP needs no DSYNC descriptor (me_mfd) X-Git-Tag: OPENLDAP_REL_ENG_2_4_33~17^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20a216fcc9cbfad838f5bfc970a160a23e9fe2be;p=openldap MDB_WRITEMAP needs no DSYNC descriptor (me_mfd) --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 092aa1c5ed..809f62e22d 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -3163,7 +3163,7 @@ mdb_env_open(MDB_env *env, const char *path, unsigned int flags, mode_t mode) } if ((rc = mdb_env_open2(env, flags)) == MDB_SUCCESS) { - if (flags & (MDB_RDONLY|MDB_NOSYNC|MDB_NOMETASYNC)) { + if (flags & (MDB_RDONLY|MDB_NOSYNC|MDB_NOMETASYNC|MDB_WRITEMAP)) { env->me_mfd = env->me_fd; } else { /* synchronous fd for meta writes */