MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / flush_and_sync

Method flush_and_sync

crates/commitlog/src/commitlog.rs:153–157  ·  view source on GitHub ↗

Calls [Self::flush] and then [Self::sync].

(&mut self)

Source from the content-addressed store, hash-verified

151
152 /// Calls [Self::flush] and then [Self::sync].
153 fn flush_and_sync(&mut self) -> io::Result<()> {
154 self.flush()?;
155 self.sync();
156 Ok(())
157 }
158
159 /// The last transaction offset written to disk, or `None` if nothing has
160 /// been written yet.

Callers 7

dropMethod · 0.45
rotate_segments_simpleFunction · 0.45
huge_commitFunction · 0.45
set_new_epochFunction · 0.45

Calls 3

OkFunction · 0.50
flushMethod · 0.45
syncMethod · 0.45