mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +08:00
mdbx: fix minor warning for MDBX_TXN_INVALID
.
This commit is contained in:
parent
43c85a68f3
commit
9230201ca9
2
mdbx.h
2
mdbx.h
@ -1458,7 +1458,7 @@ enum MDBX_txn_flags_t {
|
||||
/** Transaction is invalid.
|
||||
* \note Transaction state flag. Returned from \ref mdbx_txn_flags()
|
||||
* but can't be used with \ref mdbx_txn_begin(). */
|
||||
MDBX_TXN_INVALID = 0x80000000,
|
||||
MDBX_TXN_INVALID = INT32_MIN,
|
||||
|
||||
/** Transaction is finished or never began.
|
||||
* \note Transaction state flag. Returned from \ref mdbx_txn_flags()
|
||||
|
@ -897,7 +897,7 @@ struct MDBX_txn {
|
||||
|
||||
#define TXN_FLAGS \
|
||||
(MDBX_TXN_FINISHED | MDBX_TXN_ERROR | MDBX_TXN_DIRTY | MDBX_TXN_SPILLS | \
|
||||
MDBX_TXN_HAS_CHILD)
|
||||
MDBX_TXN_HAS_CHILD | MDBX_TXN_INVALID)
|
||||
|
||||
#if (TXN_FLAGS & (MDBX_TXN_RW_BEGIN_FLAGS | MDBX_TXN_RO_BEGIN_FLAGS)) || \
|
||||
((MDBX_TXN_RW_BEGIN_FLAGS | MDBX_TXN_RO_BEGIN_FLAGS | TXN_FLAGS) & \
|
||||
|
Loading…
Reference in New Issue
Block a user