mdbx: fix max_keysize (TODO).

Change-Id: I660b1b3e454d9b51a24d3b4cc987c8e2980bd435
This commit is contained in:
Leonid Yuriev 2018-08-31 03:03:53 +03:00 committed by Leo Yuriev
parent 96bdf6559e
commit 289da70a67

View File

@ -5119,7 +5119,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)