mdbx: add MDBX_MAXDATASIZE.

This commit is contained in:
Leo Yuriev
2017-03-31 17:59:12 +03:00
parent a2593625cc
commit ab4597cedc
2 changed files with 5 additions and 13 deletions

4
mdbx.h
View File

@@ -225,6 +225,10 @@ typedef struct iovec MDB_val;
#define mv_size iov_len
#define mv_data iov_base
/* The maximum size of a data item.
* MDBX only store a 32 bit value for node sizes. */
#define MDBX_MAXDATASIZE INT32_MAX
/* A callback function used to compare two keys in a database */
typedef int(MDB_cmp_func)(const MDB_val *a, const MDB_val *b);