vault import: remove the store's lock sidecar

This commit is contained in:
Meta Vens 2026-12-02 17:58:57 +01:00
commit ddab6c93bd

View file

@ -267,6 +267,8 @@ impl VaultSnapshot {
.map_err(|_| VaultError::Store)?;
}
std::fs::rename(&partial, &path).map_err(|_| VaultError::Store)?;
// The store leaves its lock sidecar beside the file it created.
let _ = std::fs::remove_file(directory.join(format!("{}.cc.partial.lock", self.id)));
Ok(ImportOutcome::Imported(self.id.clone()))
}