mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
fix the task view and forward the task db size
This commit is contained in:
parent
eb4bdde432
commit
8a23e707c1
3 changed files with 16 additions and 23 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue