mirror of
https://github.com/urbit/ares.git
synced 2024-11-22 15:08:54 +03:00
pma: minor fixup
This commit is contained in:
parent
d9631f83e8
commit
4cf532cbff
@ -318,7 +318,7 @@ int main(int argc, char *argv[])
|
|||||||
assert(SUCC(bt_state_open(state4, "./pmatest4", 0, 0644)));
|
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->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++)
|
for (size_t i = 0; i < PMA_GROW_SIZE_b * 2; i++)
|
||||||
assert(t4a_copy[i] == t4a[i]);
|
assert(t4a_copy[i] == t4a[i]);
|
||||||
|
@ -2437,7 +2437,7 @@ _freelist_restore(BT_state *state)
|
|||||||
|
|
||||||
/* record root's allocation and then handle subtree */
|
/* record root's allocation and then handle subtree */
|
||||||
_nlist_record_alloc(state, root);
|
_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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user