mdbx: fix minor warning for MDBX_TXN_INVALID.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-05-03 14:16:19 +03:00
parent 43c85a68f3
commit 9230201ca9
2 changed files with 2 additions and 2 deletions

2
mdbx.h
View File

@ -1458,7 +1458,7 @@ enum MDBX_txn_flags_t {
/** Transaction is invalid. /** Transaction is invalid.
* \note Transaction state flag. Returned from \ref mdbx_txn_flags() * \note Transaction state flag. Returned from \ref mdbx_txn_flags()
* but can't be used with \ref mdbx_txn_begin(). */ * 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. /** Transaction is finished or never began.
* \note Transaction state flag. Returned from \ref mdbx_txn_flags() * \note Transaction state flag. Returned from \ref mdbx_txn_flags()

View File

@ -897,7 +897,7 @@ struct MDBX_txn {
#define TXN_FLAGS \ #define TXN_FLAGS \
(MDBX_TXN_FINISHED | MDBX_TXN_ERROR | MDBX_TXN_DIRTY | MDBX_TXN_SPILLS | \ (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)) || \ #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) & \ ((MDBX_TXN_RW_BEGIN_FLAGS | MDBX_TXN_RO_BEGIN_FLAGS | TXN_FLAGS) & \