Skip to content

Commit 8987c21

Browse files
authored
Merge pull request #1741 from tursodatabase/lucio/log-sentinel-file
sqld: log error when unable to delete sentinel file on delete
2 parents 66ae8f3 + 896180e commit 8987c21

File tree

1 file changed

+3
-1
lines changed
  • libsql-server/src/namespace

1 file changed

+3
-1
lines changed

libsql-server/src/namespace/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ impl Namespace {
9292
self.checkpoint().await?;
9393
}
9494
self.db.shutdown().await?;
95-
let _ = tokio::fs::remove_file(self.path.join(".sentinel")).await;
95+
if let Err(e) = tokio::fs::remove_file(self.path.join(".sentinel")).await {
96+
tracing::error!("unable to remove .sentinel file: {}", e);
97+
}
9698
Ok(())
9799
}
98100

0 commit comments

Comments
 (0)