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

Method fsync

crates/commitlog/src/stream/common.rs:41–43  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39
40impl<T: AsyncWrite + AsyncFsync + Send + Sync> AsyncFsync for tokio::io::BufWriter<T> {
41 async fn fsync(&self) {
42 self.get_ref().fsync().await
43 }
44}
45
46impl AsyncFsync for tokio::fs::File {

Callers 1

flush_and_syncMethod · 0.45

Calls 1

sync_dataMethod · 0.80

Tested by

no test coverage detected