mdbx: rework move-node and split add-node.

This commit is contained in:
Leo Yuriev
2018-09-06 17:10:59 +03:00
parent 771ac1928b
commit 6206b67d32
2 changed files with 456 additions and 198 deletions

View File

@@ -1058,7 +1058,7 @@ static __inline unsigned mdbx_log2(size_t value) {
#define NUMKEYS(p) ((unsigned)(p)->mp_lower >> 1)
/* The amount of space remaining in the page */
#define SIZELEFT(p) (indx_t)((p)->mp_upper - (p)->mp_lower)
#define SIZELEFT(p) ((indx_t)((p)->mp_upper - (p)->mp_lower))
/* The percentage of space used in the page, in tenths of a percent. */
#define PAGEFILL(env, p) \