Add a test for "perfect_csum_update" mode

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent e0d2705294
commit 274f9ecda5
10 changed files with 182 additions and 138 deletions
+2 -2
View File
@@ -393,7 +393,7 @@ void test_compact(bool csum, bool stable)
heap.mark_lsn_completed(4);
}
assert(heap.get_compact_queue_size() == 1);
assert(heap.get_to_compact_count() == 1);
res = heap.get_next_compact(compact_oid);
assert(res == 0);
assert(oid == compact_oid);
@@ -408,7 +408,7 @@ void test_compact(bool csum, bool stable)
heap.mark_object_compacted(obj, 4);
assert(heap.get_compacted_lsn() == (stable ? 3 : 4));
assert(heap.get_compact_queue_size() == 0);
assert(heap.get_to_compact_count() == 0);
res = heap.compact_object((object_id){ .inode = INODE_WITH_POOL(1, 3), .stripe = 0 }, compact_begin->lsn, NULL);
assert(res == ENOENT);