This commit is contained in:
Clément Renault 2022-10-20 17:33:31 +02:00
parent ce4dcf47f0
commit 2a7ef3b352
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -75,6 +75,7 @@ impl IndexMapper {
fs::create_dir_all(&index_path)?; fs::create_dir_all(&index_path)?;
let mut options = EnvOpenOptions::new(); let mut options = EnvOpenOptions::new();
options.map_size(self.index_size); options.map_size(self.index_size);
options.max_readers(1024);
Ok(Index::new(options, &index_path)?) Ok(Index::new(options, &index_path)?)
} }
error => error, error => error,