Only open indexes, do not create them

This commit is contained in:
Kerollmops 2025-02-03 10:50:38 +01:00
parent 2385842537
commit 8e7d2d25f2
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -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())
})?;