From ddab6c93bd29a9da3da120f48ae45e6661e04f6a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 2 Dec 2026 17:58:57 +0100 Subject: [PATCH] vault import: remove the store's lock sidecar --- crates/ghostlight/src/vault.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ghostlight/src/vault.rs b/crates/ghostlight/src/vault.rs index 0b7f6c8..f69381c 100644 --- a/crates/ghostlight/src/vault.rs +++ b/crates/ghostlight/src/vault.rs @@ -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())) }