Update WAL catch-up progress.
(&mut self, current_lsn: u64, source_lsn: u64)
| 131 | |
| 132 | /// Update WAL catch-up progress. |
| 133 | pub fn update_wal_catchup(&mut self, current_lsn: u64, source_lsn: u64) { |
| 134 | if let MigrationPhase::WalCatchUp { start_lsn, .. } = self.phase { |
| 135 | self.phase = MigrationPhase::WalCatchUp { |
| 136 | start_lsn, |
| 137 | current_lsn, |
| 138 | source_lsn, |
| 139 | }; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /// Check if WAL lag is low enough to proceed to cut-over. |
| 144 | pub fn is_catchup_ready(&self) -> bool { |
no outgoing calls