Calling app wants to manage its own locking.
#define MDB_MAPASYNC 0x100000
/** tie reader locktable slots to #MDB_txn objects instead of to threads */
#define MDB_NOTLS 0x200000
+ /** don't use reader locktable at all, caller must manage read/write concurrency */
+#define MDB_NORDLOCK 0x400000
/** @} */
/** @defgroup mdb_dbi_open Database Flags
goto leave;
}
- if (F_ISSET(flags, MDB_RDONLY)) {
+ if ((flags & (MDB_RDONLY|MDB_NORDLOCK)) == MDB_RDONLY) {
rc = mdb_env_setup_locks(env, lpath, mode, &excl);
if (rc)
goto leave;