From 896180e7b2d4db2b705e126b96be12d7341ee3ac Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Tue, 17 Sep 2024 10:52:26 -0400 Subject: [PATCH] sqld: log error when unable to delete sentinel file on delete --- libsql-server/src/namespace/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsql-server/src/namespace/mod.rs b/libsql-server/src/namespace/mod.rs index 2a2e3eb211..89935881bf 100644 --- a/libsql-server/src/namespace/mod.rs +++ b/libsql-server/src/namespace/mod.rs @@ -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(()) }