MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / start_wal_catchup

Method start_wal_catchup

nodedb-cluster/src/migration.rs:117–130  ·  view source on GitHub ↗

Transition to Phase 2: WAL Catch-up.

(&mut self, start_lsn: u64, source_lsn: u64)

Source from the content-addressed store, hash-verified

115
116 /// Transition to Phase 2: WAL Catch-up.
117 pub fn start_wal_catchup(&mut self, start_lsn: u64, source_lsn: u64) {
118 self.phase = MigrationPhase::WalCatchUp {
119 start_lsn,
120 current_lsn: start_lsn,
121 source_lsn,
122 };
123 info!(
124 vshard = self.vshard_id,
125 start_lsn,
126 source_lsn,
127 lag = source_lsn - start_lsn,
128 "starting wal catch-up"
129 );
130 }
131
132 /// Update WAL catch-up progress.
133 pub fn update_wal_catchup(&mut self, current_lsn: u64, source_lsn: u64) {

Callers 5

full_lifecycleFunction · 0.80
pause_budget_exceededFunction · 0.80
catchup_thresholdFunction · 0.80
phase2_wal_catchupFunction · 0.80

Calls

no outgoing calls

Tested by 4

full_lifecycleFunction · 0.64
pause_budget_exceededFunction · 0.64
catchup_thresholdFunction · 0.64