From: Howard Chu Date: Sat, 23 Jan 2016 16:51:42 +0000 (+0000) Subject: Update WRITEMAP doc X-Git-Tag: LMDB_0.9.18~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90a07a398b10c5fc4945ca4ef9d05a4795aeb82a;p=openldap Update WRITEMAP doc --- diff --git a/libraries/liblmdb/lmdb.h b/libraries/liblmdb/lmdb.h index 8323af5ec0..0855da8e46 100644 --- a/libraries/liblmdb/lmdb.h +++ b/libraries/liblmdb/lmdb.h @@ -529,9 +529,11 @@ int mdb_env_create(MDB_env **env); * allowed. LMDB will still modify the lock file - except on read-only * filesystems, where LMDB does not use locks. *
  • #MDB_WRITEMAP - * Use a writeable memory map unless MDB_RDONLY is set. This is faster - * and uses fewer mallocs, but loses protection from application bugs + * Use a writeable memory map unless MDB_RDONLY is set. This uses + * fewer mallocs but loses protection from application bugs * like wild pointer writes and other bad updates into the database. + * This may be slightly faster for DBs that fit entirely in RAM, but + * is slower for DBs larger than RAM. * Incompatible with nested transactions. * Do not mix processes with and without MDB_WRITEMAP on the same * environment. This can defeat durability (#mdb_env_sync etc).