projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588a84a
)
MDB_WRITEMAP needs no DSYNC descriptor (me_mfd)
author
Hallvard Furuseth
<hallvard@openldap.org>
Mon, 17 Sep 2012 13:42:14 +0000
(15:42 +0200)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Mon, 17 Sep 2012 13:42:14 +0000
(15:42 +0200)
libraries/libmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/libmdb/mdb.c
b/libraries/libmdb/mdb.c
index
092aa1c
..
809f62e
100644
(file)
--- 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 */