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

Method fsync

crates/commitlog/src/segment.rs:236–238  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

234
235impl FileLike for File {
236 fn fsync(&mut self) -> io::Result<()> {
237 self.sync_data()
238 }
239
240 fn ftruncate(&mut self, _tx_offset: u64, size: u64) -> io::Result<()> {
241 self.set_len(size)

Callers 2

syncMethod · 0.45
reset_to_internalFunction · 0.45

Calls 7

sync_dataMethod · 0.80
append_internalMethod · 0.80
async_flushMethod · 0.80
OkFunction · 0.50
get_mutMethod · 0.45
mapMethod · 0.45
as_mutMethod · 0.45

Tested by

no test coverage detected