pma: fix file growth infinite loop

This commit is contained in:
barter-simsum 2024-01-30 18:39:44 -05:00
parent dd8f481824
commit e12d6c8fef

View File

@ -1100,6 +1100,14 @@ _flist_insert(BT_flistnode **dst, pgno_t lo, pgno_t hi)
*dst = new; *dst = new;
return; return;
} }
/* otherwise, insert discontinuous node */
BT_flistnode *new = calloc(1, sizeof *new);
new->lo = lo;
new->hi = hi;
new->next = *dst;
*dst = new;
return;
} }
static void static void