mdbx: backport - shorten maxkeysize (will be fixed in the master branch).

Change-Id: I660b1b3e454d9b51a24d3b4cc987c8e2980bd435
This commit is contained in:
Leonid Yuriev 2018-08-31 03:03:53 +03:00
parent 014be165c3
commit 204b5a532d

View File

@ -4902,7 +4902,7 @@ int __cold mdbx_env_get_maxkeysize(MDBX_env *env) {
#define mdbx_nodemax(pagesize) \
(((((pagesize)-PAGEHDRSZ) / MDBX_MINKEYS) & -(intptr_t)2) - sizeof(indx_t))
#define mdbx_maxkey(nodemax) ((nodemax) - (NODESIZE + sizeof(MDBX_db)))
#define mdbx_maxkey(nodemax) (((nodemax)-NODESIZE - sizeof(MDBX_db)) / 2)
#define mdbx_maxgc_ov1page(pagesize) \
(((pagesize)-PAGEHDRSZ) / sizeof(pgno_t) - 1)