mdbx: add MDBX_WANNA_RECOVERY.

This commit is contained in:
Leo Yuriev
2017-05-17 20:54:16 +03:00
parent 015a242c89
commit 677625ead1
3 changed files with 14 additions and 6 deletions

4
mdbx.h
View File

@@ -336,6 +336,10 @@ typedef enum MDB_cursor_op {
* - ABI version mismatch (rare case); */
#define MDBX_EBADSIGN (-30420)
/* Database should be recovered, but this could be done automatically
* right now (e.g. in readonly mode and so forth). */
#define MDBX_WANNA_RECOVERY (-30419)
/* Statistics for a database in the environment */
typedef struct MDBX_stat {
unsigned ms_psize; /* Size of a database page.