fix the task view and forward the task db size

This commit is contained in:
Irevoire 2022-10-23 11:23:24 +02:00
parent 395766bf26
commit 3f5622f749
No known key found for this signature in database
GPG key ID: 7A6A970C96104F1B
3 changed files with 16 additions and 23 deletions

View file

@ -273,6 +273,7 @@ impl IndexScheduler {
update_file_path: PathBuf,
indexes_path: PathBuf,
dumps_path: PathBuf,
task_db_size: usize,
index_size: usize,
indexer_config: IndexerConfig,
autobatching_enabled: bool,
@ -285,6 +286,7 @@ impl IndexScheduler {
let mut options = heed::EnvOpenOptions::new();
options.max_dbs(9);
options.map_size(task_db_size);
let env = options.open(tasks_path)?;
let file_store = FileStore::new(&update_file_path)?;
@ -834,6 +836,7 @@ mod tests {
tempdir.path().join("indexes"),
tempdir.path().join("dumps"),
1024 * 1024,
1024 * 1024,
IndexerConfig::default(),
autobatching, // enable autobatching
sender,