mdbx: add MDBX_EKEYMISMATCH.

This commit is contained in:
Leo Yuriev
2017-05-22 14:02:33 +03:00
parent d9eeac45b2
commit 82d3595b76
2 changed files with 8 additions and 1 deletions

4
mdbx.h
View File

@@ -328,6 +328,10 @@ typedef enum MDB_cursor_op {
* right now (e.g. in readonly mode and so forth). */
#define MDBX_WANNA_RECOVERY (-30419)
/* The given key value is mismatched to the current cursor position,
* when mdbx_cursor_put() called with MDB_CURRENT option. */
#define MDBX_EKEYMISMATCH (-30418)
/* Statistics for a database in the environment */
typedef struct MDBX_stat {
unsigned ms_psize; /* Size of a database page.