mdb_env(3)

πŸ“¦
version 0.9.35 Β· 4 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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