pma: depth passed to _flist_read2 should be 1 not 0

This commit is contained in:
barter-simsum 2023-12-15 19:49:35 -05:00
parent 2c016500ac
commit 3a6ed42054

View File

@ -1982,7 +1982,7 @@ _flist_read(BT_state *state)
BT_meta *meta = state->meta_pages[state->which];
BT_page *root = _node_get(state, meta->root);
uint8_t maxdepth = meta->depth;
BT_flistnode *head = _flist_read2(state, root, maxdepth, 0);
BT_flistnode *head = _flist_read2(state, root, maxdepth, 1);
/* ;;: infinite loop with proper starting depth of 1. -- fix that! */
/* BT_flistnode *head = _flist_read2(state, root, maxdepth, 1); */