make the autodeletion work with a fixed number of tasks and update the tests

This commit is contained in:
Tamo 2023-04-25 17:26:34 +02:00 committed by Louis Dureuil
parent 972bb2831c
commit aa7537a11e
No known key found for this signature in database
9 changed files with 390 additions and 170 deletions

View file

@ -234,6 +234,7 @@ fn open_or_create_database_unchecked(
index_base_map_size: opt.max_index_size.get_bytes() as usize,
indexer_config: (&opt.indexer_options).try_into()?,
autobatching_enabled: true,
max_number_of_tasks: 1_000_000,
index_growth_amount: byte_unit::Byte::from_str("10GiB").unwrap().get_bytes() as usize,
index_count: DEFAULT_INDEX_COUNT,
})?)