Mark a checkpoint as complete at the given LSN. The WAL can be safely truncated up to this LSN after all engines have flushed their dirty pages.
(&mut self, lsn: u64)
| 178 | /// The WAL can be safely truncated up to this LSN after |
| 179 | /// all engines have flushed their dirty pages. |
| 180 | pub fn complete_checkpoint(&mut self, lsn: u64) { |
| 181 | self.checkpoint_lsn = lsn; |
| 182 | self.checkpoint_count += 1; |
| 183 | info!(lsn, count = self.checkpoint_count, "checkpoint completed"); |
| 184 | } |
| 185 | |
| 186 | /// LSN of the last completed checkpoint. |
| 187 | /// WAL entries before this LSN are safe to truncate. |
no outgoing calls