mdbx: refine read_header(), add MDBX_TOO_LARGE.

Change-Id: I25b9bb2e3817993d627b2b784dfa496d9ba7e7b0
This commit is contained in:
Leonid Yuriev
2017-06-05 22:45:13 +03:00
committed by Leo Yuriev
parent 61d7ea283f
commit 7e85ad82f1
2 changed files with 54 additions and 32 deletions

4
mdbx.h
View File

@@ -414,6 +414,10 @@ typedef enum MDBX_cursor_op {
* when mdbx_cursor_put() called with MDBX_CURRENT option. */
#define MDBX_EKEYMISMATCH (-30418)
/* Database is too large for current system, i.e. could NOT be mapped into RAM.
*/
#define MDBX_TOO_LARGE (-30417)
/* Statistics for a database in the environment */
typedef struct MDBX_stat {
uint32_t ms_psize; /* Size of a database page.