mt_dbflag(3)
π mt_dbflag(3) π β Transaction DB Flags
okay bestie, pull up a chair πͺ because today we're talking about mt_dbflag from the Library Functions Manual, and it's genuinely one of those tiny pages that's giving quiet main character energy. It's not a function, it's not a struct β it's a lil grab-bag of macros that describe what's going on with a DB handle inside a transaction. No cap. πΈ
β¨ NAME β¨
mt_dbflag β Transaction DB Flags
that's it. that's the whole name section. short, sweet, iconic. π
π SYNOPSIS π
Macros
#define DB_DIRTY 0x01
#define DB_STALE 0x02
#define DB_NEW 0x04
#define DB_VALID 0x08
#define DB_USRVALID 0x10
#define DB_DUPDATA 0x20
six macros. six little flag bits. a whole personality in hex. π¦
π Detailed Description π
so like. this page is basically just the macro list plus a little explainer for each one. there's no functions here, no arguments, no return values β just flags you can check. it's giving "reference card", it's giving "cheat sheet", it's giving "I read this once and now I understand everything." β¨
π₯ Macro Definition Documentation π₯
okay here's the actual tea, one flag at a time, no skips, no shortcuts, we are thorough in this household. π
#define DB_DIRTY 0x01β DB was written in this txn. like, someone touched it, it's messy now, it's been edited. ποΈ#define DB_STALE 0x02β Named-DB record is older than txnID. it's stale, bestie. it's giving leftovers in the back of the fridge. π#define DB_NEW 0x04β Named-DB handle opened in this txn. fresh out the box, brand new, unopened, we love to see it. π#define DB_VALID 0x08β DB handle is valid, see alsoMDB_VALID. it passed the vibe check β (and yes, the original literally says "see alsoMDB_VALID", so go look at that too, iykyk).#define DB_USRVALID 0x10β AsDB_VALID, but not set forFREE_DBI. same energy asDB_VALID, just a liiittle more exclusive βFREE_DBIdoesn't get an invite to this party. π#define DB_DUPDATA 0x20β DB isMDB_DUPSORTdata. it's the duplicates-sorted kind of data, periodt. π
real talk: these are bit flags, so treat them like bits β don't go inventing your own meanings for them, and definitely don't assume behaviour that isn't written down here. the page says what it says. π«Ά
π Author π
Generated automatically by Doxygen for LMDB from the source code. so technically nobody wrote this with their own two hands β Doxygen did, and honestly? slay, automated queen. π€π
aaaand that's the whole page, bestie!! π₯³ you now know every single one of the six mt_dbflag macros, exactly what they mean, and you did it without falling asleep. so proud. π
this little cutie came from the LMDB manual, page mt_dbflag(3), and it's the version that lives at the bottom of the page β go forth and check your flags, mwah πβ¨π
π¦ 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