Skip to content

Commit

Permalink
Merge pull request #1741 from tursodatabase/lucio/log-sentinel-file
Browse files Browse the repository at this point in the history
sqld: log error when unable to delete sentinel file on delete
  • Loading branch information
LucioFranco authored Sep 17, 2024
2 parents 66ae8f3 + 896180e commit 8987c21
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 8987c21

Please sign in to comment.