mdbx: add txnid-list functions.

This commit is contained in:
Leo Yuriev
2017-06-05 14:02:44 +03:00
parent 52f52de2d5
commit 1343b46466
2 changed files with 73 additions and 18 deletions

View File

@@ -394,6 +394,9 @@ typedef struct MDBX_lockinfo {
* descending order. */
typedef pgno_t *MDBX_IDL;
/* List of txnid, only for MDBX_env.mt_lifo_reclaimed */
typedef txnid_t *MDBX_TXL;
/* An ID2 is an ID/pointer pair. */
typedef struct MDBX_ID2 {
pgno_t mid; /* The ID */
@@ -451,7 +454,7 @@ struct MDBX_txn {
txnid_t mt_txnid;
MDBX_env *mt_env; /* the DB environment */
/* The list of reclaimed txns from freeDB */
MDBX_IDL mt_lifo_reclaimed;
MDBX_TXL mt_lifo_reclaimed;
/* The list of pages that became unused during this transaction. */
MDBX_IDL mt_free_pages;
/* The list of loose pages that became unused and may be reused