mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-08 11:56:37 +08:00
Only open indexes, do not create them
This commit is contained in:
parent
2385842537
commit
8e7d2d25f2
@ -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 = 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())
|
||||
})?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user