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:
Shubham Mishra
2024-09-24 21:36:49 +05:30
committed by GitHub
parent eadea95a77
commit eeaa00a05f
14 changed files with 1837 additions and 1008 deletions
+3 -3
View File
@@ -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)
}
}