From 2a7ef3b3521501266cbbe3109d3b867c8c1ac430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Thu, 20 Oct 2022 17:33:31 +0200 Subject: [PATCH] Reapply #2830 --- index-scheduler/src/index_mapper.rs | 1 + 1 file changed, 1 insertion(+) 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,