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

Method ftruncate

crates/commitlog/src/segment.rs:240–242  ·  view source on GitHub ↗
(&mut self, _tx_offset: u64, size: u64)

Source from the content-addressed store, hash-verified

238 }
239
240 fn ftruncate(&mut self, _tx_offset: u64, size: u64) -> io::Result<()> {
241 self.set_len(size)
242 }
243
244 #[cfg(all(feature = "fallocate", target_os = "linux"))]
245 fn fallocate(&mut self, size: u64) -> io::Result<()> {

Callers 2

reset_to_internalFunction · 0.45

Calls 9

otherFunction · 0.85
set_lenMethod · 0.80
truncateMethod · 0.80
OkFunction · 0.50
get_mutMethod · 0.45
mapMethod · 0.45
as_mutMethod · 0.45
resetMethod · 0.45
okMethod · 0.45

Tested by 1