mirror of
https://github.com/urbit/ares.git
synced 2024-12-23 05:12:15 +03:00
pma: btree test related changes
This commit is contained in:
parent
c97a90f77d
commit
b6cf968083
@ -10,4 +10,9 @@
|
||||
#undef BT_DAT_MAXKEYS
|
||||
#define BT_DAT_MAXKEYS 10
|
||||
|
||||
/* maxdepth expanded because when BT_DAT_MAXKEYS is shrunk, the depth of the
|
||||
btree can grow higher than usual */
|
||||
#undef BT_MAXDEPTH
|
||||
#define BT_MAXDEPTH 10
|
||||
|
||||
#endif
|
||||
|
@ -367,7 +367,10 @@ _bt_insertdat(vaof_t lo, vaof_t hi, pgno_t fo,
|
||||
static int _bt_flip_meta(BT_state *);
|
||||
|
||||
|
||||
#define BT_MAXDEPTH 4 /* ;;: todo derive it */
|
||||
/* TODO: derive BT_MAXDEPTH */
|
||||
#ifndef BT_MAXDEPTH
|
||||
#define BT_MAXDEPTH 4
|
||||
#endif
|
||||
typedef struct BT_findpath BT_findpath;
|
||||
struct BT_findpath {
|
||||
BT_page *path[BT_MAXDEPTH];
|
||||
|
Loading…
Reference in New Issue
Block a user