mdbx: use MAX_TXN internally (cosmetics).

Change-Id: Ic8171dbfa8bb32272e46e939223316f6182d3a7a
This commit is contained in:
Leonid Yuriev
2020-05-15 01:15:08 +03:00
parent 463a8af35b
commit 8f31aad0fb
2 changed files with 11 additions and 12 deletions

View File

@@ -207,10 +207,13 @@ typedef uint32_t pgno_t;
#define MAX_PAGENO UINT32_C(0x7FFFffff)
#define MIN_PAGENO NUM_METAS
#define SAFE64_INVALID_THRESHOLD UINT64_C(0xffffFFFF00000000)
/* A transaction ID. */
typedef uint64_t txnid_t;
#define PRIaTXN PRIi64
#define MIN_TXNID UINT64_C(1)
#define MAX_TXNID (SAFE64_INVALID_THRESHOLD - 1)
#define INVALID_TXNID UINT64_MAX
/* LY: for testing non-atomic 64-bit txnid on 32-bit arches.
* #define MDBX_TXNID_STEP (UINT32_MAX / 3) */
@@ -251,8 +254,6 @@ typedef union mdbx_safe64 {
};
} mdbx_safe64_t;
#define SAFE64_INVALID_THRESHOLD UINT64_C(0xffffFFFF00000000)
/* Information about a single database in the environment. */
typedef struct MDBX_db {
uint16_t md_flags; /* see mdbx_dbi_open */