Seal the WAL — no more writes will be accepted. Flushes any buffered data before sealing.
(&mut self)
| 369 | /// |
| 370 | /// Flushes any buffered data before sealing. |
| 371 | pub fn seal(&mut self) -> Result<()> { |
| 372 | self.sync()?; |
| 373 | self.sealed = true; |
| 374 | Ok(()) |
| 375 | } |
| 376 | |
| 377 | /// The next LSN that will be assigned. |
| 378 | pub fn next_lsn(&self) -> u64 { |