mdbx: refine mdbx_page_spill().

More for https://github.com/erthink/libmdbx/issues/132.

Change-Id: I40788c13b54453c17d5e5dae6c3d2f93226f8e00
This commit is contained in:
Leonid Yuriev
2020-12-04 14:06:02 +03:00
parent 12ee5e6cac
commit 338de2e1fb
2 changed files with 42 additions and 38 deletions

View File

@@ -831,13 +831,10 @@ struct MDBX_txn {
};
};
/* Enough space for 2^32 nodes with minimum of 2 keys per node. I.e., plenty.
* At 4 keys per node, enough for 2^64 nodes, so there's probably no need to
* raise this on a 64 bit machine. */
#if MDBX_WORDBITS >= 64
#define CURSOR_STACK 28
#define CURSOR_STACK 32
#else
#define CURSOR_STACK 20
#define CURSOR_STACK 24
#endif
struct MDBX_xcursor;