mdb_txn(3)
π mdb_txn β Transaction Flags π
okay bestie, welcome to mdb_txn(3) β straight out of the Library Functions Manual, no cap. this one's a little family reunion of macros that LMDB uses to talk about transaction flags, and every single one of them matters. let's get into it π«Ά
β¨ SYNOPSIS β¨
π Macros
#define MDB_TXN_BEGIN_FLAGS MDB_RDONLY
#define MDB_TXN_RDONLY MDB_RDONLY
#define MDB_TXN_WRITEMAP MDB_WRITEMAP
#define MDB_TXN_FINISHED 0x01
#define MDB_TXN_ERROR 0x02
#define MDB_TXN_DIRTY 0x04
#define MDB_TXN_SPILLS 0x08
#define MDB_TXN_HAS_CHILD 0x10
#define MDB_TXN_BLOCKED
(MDB_TXN_FINISHED|MDB_TXN_ERROR|MDB_TXN_HAS_CHILD)
πΈ Detailed Description πΈ
like... that's it. that's the whole description. the macros do the talking, periodt. π
π Macro Definition Documentation π
π #define MDB_TXN_BEGIN_FLAGS MDB_RDONLY
the flags for mdb_txn_begin(). iconic little starter pack. β¨
π #define MDB_TXN_RDONLY MDB_RDONLY
read-only transaction energy. look, don't touch. π
π #define MDB_TXN_WRITEMAP MDB_WRITEMAP
a copy of the MDB_env flag, living its best life in writers. π¦
π #define MDB_TXN_FINISHED 0x01
this txn is finished β or, awkwardly, it never even began. π
π #define MDB_TXN_ERROR 0x02
the txn is unusable after an error. it's giving we don't talk anymore. π
π #define MDB_TXN_DIRTY 0x04
it must write, even if the dirty list is empty. no skipping, no excuses, bestie. π₯
π #define MDB_TXN_SPILLS 0x08
this txn, or one of its parents, has spilled pages. generational drama, honestly. π
π #define MDB_TXN_HAS_CHILD 0x10
this txn has an MDB_txn.mt_child. it's a parent now. main character energy. π
π #define MDB_TXN_BLOCKED (MDB_TXN_FINISHED|MDB_TXN_ERROR|MDB_TXN_HAS_CHILD)
most operations on the txn are currently illegal when it's in this state. like, do not try it. π«
ngl, this is a bitmask combo ofMDB_TXN_FINISHED,MDB_TXN_ERRORandMDB_TXN_HAS_CHILDβ so if your txn is finished, errored, or has a child, most things you'd want to do to it are off the table. vibe check: failed. π
π Author π
Generated automatically by Doxygen for LMDB from the source code. so nobody hand-wrote this, it just manifested. slay. β¨
and that's the whole page, bestie β LMDB says hi, this was mdb_txn(3), and it came to you courtesy of the Library Functions Manual. mwah, ily, go read your transactions π
π«Ά
π¦ 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