mdbx: rework cursor's couple (required for further fixing).

Change-Id: Ic89c59eaea36d14a26e29d2012c693d92474a748
This commit is contained in:
Leonid Yuriev
2018-08-29 19:15:59 +03:00
committed by Leo Yuriev
parent e25b30b5ce
commit 02f3230e0c
2 changed files with 93 additions and 93 deletions

View File

@@ -691,6 +691,11 @@ typedef struct MDBX_xcursor {
uint8_t mx_dbflag;
} MDBX_xcursor;
typedef struct MDBX_cursor_couple {
MDBX_cursor outer;
MDBX_xcursor inner;
} MDBX_cursor_couple;
/* Check if there is an inited xcursor, so XCURSOR_REFRESH() is proper */
#define XCURSOR_INITED(mc) \
((mc)->mc_xcursor && ((mc)->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED))