mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-27 18:12:35 -04:00
Commitlog offset index (#1671)
Signed-off-by: Shubham Mishra <shubham@clockworklabs.io> Co-authored-by: Kim Altintop <kim@eagain.io>
This commit is contained in:
@@ -161,12 +161,12 @@ struct ShortSegment {
|
||||
}
|
||||
|
||||
impl FileLike for ShortSegment {
|
||||
fn fsync(&self) -> std::io::Result<()> {
|
||||
fn fsync(&mut self) -> std::io::Result<()> {
|
||||
self.inner.fsync()
|
||||
}
|
||||
|
||||
fn ftruncate(&self, size: u64) -> std::io::Result<()> {
|
||||
self.inner.ftruncate(size)
|
||||
fn ftruncate(&mut self, tx_offset: u64, size: u64) -> std::io::Result<()> {
|
||||
self.inner.ftruncate(tx_offset, size)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user