vault import: remove the store's lock sidecar
This commit is contained in:
parent
4f53151e3d
commit
ddab6c93bd
1 changed files with 2 additions and 0 deletions
|
|
@ -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()))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue