Update crates/meilitool/src/upgrade/v1_12.rs

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
This commit is contained in:
Many the fish 2024-12-11 14:34:18 +01:00 committed by GitHub
parent c614d0dd35
commit 5c492031d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ fn convert_update_files(db_path: &Path) -> anyhow::Result<()> {
"while flushing update file bufwriter for update file {update_file_path:?}"
))?;
let _ = file
// atomically replace the obkv file with the rewritten NDJSON file
.persist(&update_file_path)
.with_context(|| format!("while persisting update file {update_file_path:?}"))?;
}