Fix skipping of corrupted objects, fix use_buffer_area with zero size

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent 6a30e6653a
commit 74b8ea1303
4 changed files with 74 additions and 28 deletions
+4 -2
View File
@@ -128,7 +128,8 @@ class blockstore_heap_t
blockstore_disk_t *dsk = NULL;
uint8_t* buffer_area = NULL;
bool fail_on_warn = false;
bool abort_on_corruption = false;
bool abort_on_overlap = true;
int log_level = 0;
const uint32_t meta_block_count = 0;
@@ -301,5 +302,6 @@ public:
uint32_t get_max_write_entry_size();
// only for tests
void set_fail_on_warn(bool fail);
void set_abort_on_corruption(bool fail);
void set_abort_on_overlap(bool fail);
};