Calls [Self::flush] and then [Self::sync].
(&mut self)
| 151 | |
| 152 | /// Calls [Self::flush] and then [Self::sync]. |
| 153 | fn flush_and_sync(&mut self) -> io::Result<()> { |
| 154 | self.flush()?; |
| 155 | self.sync(); |
| 156 | Ok(()) |
| 157 | } |
| 158 | |
| 159 | /// The last transaction offset written to disk, or `None` if nothing has |
| 160 | /// been written yet. |