mdbx: rework ID2L.

Change-Id: Ia5b47bcceb176c994bfe59373242f8622389697e
This commit is contained in:
Leonid Yuriev
2018-08-25 20:17:26 +03:00
committed by Leo Yuriev
parent 25fc9305dd
commit 8abff4773f
2 changed files with 110 additions and 115 deletions

View File

@@ -501,9 +501,12 @@ typedef pgno_t *MDBX_PNL;
typedef txnid_t *MDBX_TXL;
/* An ID2 is an ID/pointer pair. */
typedef struct MDBX_ID2 {
pgno_t mid; /* The ID */
void *mptr; /* The pointer */
typedef union MDBX_ID2 {
struct {
pgno_t pgno;
MDBX_page *ptr;
};
unsigned limit, length;
} MDBX_ID2;
/* An ID2L is an ID2 List, a sorted array of ID2s.