Skip to content

Commit

Permalink
sqld: log error when unable to delete sentinel file on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Sep 17, 2024
1 parent 4c0cfda commit 896180e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsql-server/src/namespace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ impl Namespace {
self.checkpoint().await?;
}
self.db.shutdown().await?;
let _ = tokio::fs::remove_file(self.path.join(".sentinel")).await;
if let Err(e) = tokio::fs::remove_file(self.path.join(".sentinel")).await {
tracing::error!("unable to remove .sentinel file: {}", e);
}
Ok(())
}

Expand Down

0 comments on commit 896180e

Please sign in to comment.