mirror of
https://github.com/urbit/ares.git
synced 2024-12-23 21:31:57 +03:00
pma: fix file growth infinite loop
This commit is contained in:
parent
dd8f481824
commit
e12d6c8fef
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user