diff --git a/benchmarks/benches/indexing.rs b/benchmarks/benches/indexing.rs index 0c19b89cf..bebf11ba0 100644 --- a/benchmarks/benches/indexing.rs +++ b/benchmarks/benches/indexing.rs @@ -32,7 +32,7 @@ fn setup_index() -> Index { let mut options = EnvOpenOptions::new(); options.map_size(100 * 1024 * 1024 * 1024); // 100 GB options.max_readers(10); - Index::new(options, path).unwrap() + Index::new(None, options, path).unwrap() } fn setup_settings<'t>( diff --git a/benchmarks/benches/utils.rs b/benchmarks/benches/utils.rs index b848560ad..ab52a9a6a 100644 --- a/benchmarks/benches/utils.rs +++ b/benchmarks/benches/utils.rs @@ -66,7 +66,7 @@ pub fn base_setup(conf: &Conf) -> Index { let mut options = EnvOpenOptions::new(); options.map_size(100 * 1024 * 1024 * 1024); // 100 GB options.max_readers(10); - let index = Index::new(options, conf.database_name).unwrap(); + let index = Index::new(None, options, conf.database_name).unwrap(); let config = IndexerConfig::default(); let mut wtxn = index.write_txn().unwrap(); diff --git a/index-scheduler/src/index_mapper/index_map.rs b/index-scheduler/src/index_mapper/index_map.rs index cf8288461..c3873e465 100644 --- a/index-scheduler/src/index_mapper/index_map.rs +++ b/index-scheduler/src/index_mapper/index_map.rs @@ -311,13 +311,7 @@ fn create_or_open_index( } if let Some((created, updated)) = date { - Ok(Index::new_with_creation_dates( - name, - options, - path, - created, - updated, - )?) + Ok(Index::new_with_creation_dates(name, options, path, created, updated)?) } else { Ok(Index::new(name, options, path)?) }