fix compilation error on logical_log

This commit is contained in:
Pere Diaz Bou
2025-09-18 19:20:37 +02:00
parent 242c48c813
commit 402f171ce4

View File

@@ -48,8 +48,9 @@ impl LogicalLog {
);
}
});
let buffer_len = buffer.len();
let c = self.file.pwrite(self.offset, buffer, c)?;
self.offset += buffer.len() as u64;
self.offset += buffer_len as u64;
Ok(IOResult::IO(IOCompletions::Single(c)))
}