mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Only open indexes, do not create them
This commit is contained in:
		| @@ -398,7 +398,7 @@ fn compact_index(db_path: PathBuf, index_name: &str) -> anyhow::Result<()> { | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         let index_path = db_path.join("indexes").join(uuid.to_string()); |         let index_path = db_path.join("indexes").join(uuid.to_string()); | ||||||
|         let index = Index::new(EnvOpenOptions::new(), &index_path).with_context(|| { |         let index = Index::new(EnvOpenOptions::new(), &index_path, false).with_context(|| { | ||||||
|             format!("While trying to open the index at path {:?}", index_path.display()) |             format!("While trying to open the index at path {:?}", index_path.display()) | ||||||
|         })?; |         })?; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user