From 4cf532cbff9cee6504b947ab1027873bf289d1e5 Mon Sep 17 00:00:00 2001 From: barter-simsum Date: Fri, 12 Apr 2024 18:28:32 -0400 Subject: [PATCH] pma: minor fixup --- rust/ares_pma/c-src/btest.c | 2 +- rust/ares_pma/c-src/btree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/ares_pma/c-src/btest.c b/rust/ares_pma/c-src/btest.c index d6496fc..eed097f 100644 --- a/rust/ares_pma/c-src/btest.c +++ b/rust/ares_pma/c-src/btest.c @@ -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]); diff --git a/rust/ares_pma/c-src/btree.c b/rust/ares_pma/c-src/btree.c index 2af6d2a..a314e28 100644 --- a/rust/ares_pma/c-src/btree.c +++ b/rust/ares_pma/c-src/btree.c @@ -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