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

Method flush

crates/commitlog/src/commitlog.rs:148–150  ·  view source on GitHub ↗

Flush the buffered data from previous calls to [Self::commit] to the underlying storage. Call [Self::sync] to instruct the underlying storage to flush its buffers as well.

(&mut self)

Source from the content-addressed store, hash-verified

146 /// Call [Self::sync] to instruct the underlying storage to flush its
147 /// buffers as well.
148 pub fn flush(&mut self) -> io::Result<()> {
149 self.head.flush()
150 }
151
152 /// Calls [Self::flush] and then [Self::sync].
153 fn flush_and_sync(&mut self) -> io::Result<()> {

Callers 2

flush_and_syncMethod · 0.45
commitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected