Flush queued pointer writes when flush()ing

This commit is contained in:
Olivier 'reivilibre' 2021-11-14 06:57:59 +00:00
parent 350f5beb05
commit 78196b4ca3
1 changed files with 3 additions and 0 deletions

View File

@ -532,6 +532,9 @@ impl RawPile for SqliteBloblogPile {
.writers_reach_zero .writers_reach_zero
.wait_while(inner, |inner| inner.writers_in_progress != 0) .wait_while(inner, |inner| inner.writers_in_progress != 0)
.unwrap(); .unwrap();
self.flush_queued_pointer_writes()?;
// TODO sync all files we have open first! // TODO sync all files we have open first!
sync(); sync();
Ok(()) Ok(())