logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mdb_txn - Transaction Flags

Author

       Generated automatically by Doxygen for LMDB from the source code.

                                                      LMDB                                            mdb_txn(3)

Detailed Description

Macro Definition Documentation

#defineMDB_TXN_BEGIN_FLAGSMDB_RDONLYmdb_txn_begin() flags

   #defineMDB_TXN_RDONLYMDB_RDONLY
       read-only transaction

   #defineMDB_TXN_WRITEMAPMDB_WRITEMAP
       copy of MDB_env flag in writers

   #defineMDB_TXN_FINISHED0x01
       txn is finished or never began

   #defineMDB_TXN_ERROR0x02
       txn is unusable after an error

   #defineMDB_TXN_DIRTY0x04
       must write, even if dirty list is empty

   #defineMDB_TXN_SPILLS0x08
       txn or a parent has spilled pages

   #defineMDB_TXN_HAS_CHILD0x10
       txn has an MDB_txn.mt_child

   #defineMDB_TXN_BLOCKED(MDB_TXN_FINISHED|MDB_TXN_ERROR|MDB_TXN_HAS_CHILD)
       most operations on the txn are currently illegal

Name

       mdb_txn - Transaction Flags

Synopsis

Macros
       #define MDB_TXN_BEGIN_FLAGSMDB_RDONLY
       #define MDB_TXN_RDONLYMDB_RDONLY
       #define MDB_TXN_WRITEMAPMDB_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)

See Also