mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-19 18:12:21 +08:00
mdbx: rework ID2L.
Change-Id: Ia5b47bcceb176c994bfe59373242f8622389697e
This commit is contained in:
committed by
Leo Yuriev
parent
25fc9305dd
commit
8abff4773f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user