diff --git a/index-scheduler/src/index_mapper.rs b/index-scheduler/src/index_mapper.rs index 9e9072e0a..f5f619f81 100644 --- a/index-scheduler/src/index_mapper.rs +++ b/index-scheduler/src/index_mapper.rs @@ -75,6 +75,7 @@ impl IndexMapper { fs::create_dir_all(&index_path)?; let mut options = EnvOpenOptions::new(); options.map_size(self.index_size); + options.max_readers(1024); Ok(Index::new(options, &index_path)?) } error => error,