From 21994d39fd8eb77a830be49819b2ae63aa958f5b Mon Sep 17 00:00:00 2001 From: Tpt Date: Fri, 17 Mar 2023 21:34:31 +0100 Subject: [PATCH] Server: adds explicit flush calls Allows to get explicit errors if flush fails when closing the store --- server/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main.rs b/server/src/main.rs index b30b963a..b1a920f0 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -373,6 +373,7 @@ pub fn main() -> anyhow::Result<()> { }) } }); + store.flush()?; Ok(()) } } @@ -568,6 +569,7 @@ pub fn main() -> anyhow::Result<()> { .ok_or_else(|| anyhow!("The --location argument is required"))?, )?; store.update(update)?; + store.flush()?; Ok(()) } Command::Optimize {} => {