From 78196b4ca332a85a15bc528c35098e9b3fcb95a9 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 14 Nov 2021 06:57:59 +0000 Subject: [PATCH] Flush queued pointer writes when flush()ing --- yama/src/pile/local_sqlitebloblogs.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yama/src/pile/local_sqlitebloblogs.rs b/yama/src/pile/local_sqlitebloblogs.rs index edce077..5cb13d4 100644 --- a/yama/src/pile/local_sqlitebloblogs.rs +++ b/yama/src/pile/local_sqlitebloblogs.rs @@ -532,6 +532,9 @@ impl RawPile for SqliteBloblogPile { .writers_reach_zero .wait_while(inner, |inner| inner.writers_in_progress != 0) .unwrap(); + + self.flush_queued_pointer_writes()?; + // TODO sync all files we have open first! sync(); Ok(())