mdb_env(3)
π mdb_env β Environment Flags π
okay bestie, welcome to the LMDB girlies' corner of the manual pages π
this is mdb_env(3), from the Library Functions Manual, and it's literally just the whole roster of environment flags. no cap, that's the entire vibe.
β¨ NAME β¨
mdb_env β Environment Flags π
πΈ SYNOPSIS πΈ
Macros
#define MDB_FIXEDMAP 0x01
#define MDB_NOSUBDIR 0x4000
#define MDB_NOSYNC 0x10000
#define MDB_RDONLY 0x20000
#define MDB_NOMETASYNC 0x40000
#define MDB_WRITEMAP 0x80000
#define MDB_MAPASYNC 0x100000
#define MDB_NOTLS 0x200000
#define MDB_NOLOCK 0x400000
#define MDB_NORDAHEAD 0x800000
#define MDB_NOMEMINIT 0x1000000
π¦ Detailed Description π¦
so likeβ¦ there's no extra prose here, bestie π the flags below are the whole story. scroll down, the lore is in the macros π
π Macro Definition Documentation π
π #define MDB_FIXEDMAP 0x01
mmap at a fixed address β and this one is experimental, so treat it like a situationship, not a marriage πβ¨
π #define MDB_NOSUBDIR 0x4000
no environment directory. she's directory-less and thriving π
β #define MDB_NOSYNC 0x10000
don't fsync after commit. living dangerously, iconic behaviour π₯
π #define MDB_RDONLY 0x20000
read only. look, don't touch, periodt π
π #define MDB_NOMETASYNC 0x40000
don't fsync the metapage after commit. yeah, just the metapage gets to skip the sync, the rest still has to show up π
π #define MDB_WRITEMAP 0x80000
use writable mmap π¦
π§ #define MDB_MAPASYNC 0x100000
use asynchronous msync when MDB_WRITEMAP is used β¨ (so yes, it's giving "I only exist when my friend MDB_WRITEMAP is around" π)
πΈ #define MDB_NOTLS 0x200000
tie reader locktable slots to MDB_txn objects instead of to threads π«Ά
π #define MDB_NOLOCK 0x400000
don't do any locking β the caller must manage their own locks. not me handing you the keys and walking away π
π #define MDB_NORDAHEAD 0x800000
don't do readahead β and heads up, this has no effect on Windows π
π« #define MDB_NOMEMINIT 0x1000000
don't initialize malloc'd memory before writing to datafile π
π«Ά Author π«Ά
Generated automatically by Doxygen for LMDB from the source code. she didn't write herself, she was born this way β¨
and that's the whole page, bestie π thanks for reading the mdb_env(3) manual page from LMDB β mwah, slay, go touch some flags π
πβ
π¦ where this page comes from
- ubuntu noble: lmdb-doc 0.9.31-1build1 Β· OpenLDAP-2.8
- ubuntu questing: lmdb-doc 0.9.31-1build1
- ubuntu resolute: lmdb-doc 0.9.31-1build2 Β· OpenLDAP-2.8
- ubuntu stonking: lmdb-doc 0.9.35-1 Β· OpenLDAP-2.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms