pma: minor fixup

This commit is contained in:
barter-simsum 2024-04-12 18:28:32 -04:00
parent d9631f83e8
commit 4cf532cbff
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ int main(int argc, char *argv[])
assert(SUCC(bt_state_open(state4, "./pmatest4", 0, 0644)));
assert(state4->file_size_p == PMA_INITIAL_SIZE_p + PMA_GROW_SIZE_p * 2);
/* assert(state4->flist->next->hi == state4->file_size_p); */
assert(state4->flist->hi == state4->file_size_p);
for (size_t i = 0; i < PMA_GROW_SIZE_b * 2; i++)
assert(t4a_copy[i] == t4a[i]);

View File

@ -2437,7 +2437,7 @@ _freelist_restore(BT_state *state)
/* record root's allocation and then handle subtree */
_nlist_record_alloc(state, root);
_freelist_restore2(state, root, 1, meta->depth); /* ;;: flist restoration is fucked */
_freelist_restore2(state, root, 1, meta->depth);
}
static void