Replay all committed records across all segments, in LSN order. Used for crash recovery on startup.
(&self)
| 206 | /// |
| 207 | /// Used for crash recovery on startup. |
| 208 | pub fn replay(&self) -> Result<Vec<WalRecord>> { |
| 209 | replay_all_segments(&self.wal_dir) |
| 210 | } |
| 211 | |
| 212 | /// Replay only records with LSN >= `from_lsn`. |
| 213 | /// |