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

Method update_base_copy

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

Update base copy progress.

(&mut self, bytes_transferred: u64)

Source from the content-addressed store, hash-verified

105
106 /// Update base copy progress.
107 pub fn update_base_copy(&mut self, bytes_transferred: u64) {
108 if let MigrationPhase::BaseCopy { bytes_total, .. } = self.phase {
109 self.phase = MigrationPhase::BaseCopy {
110 bytes_transferred,
111 bytes_total,
112 };
113 }
114 }
115
116 /// Transition to Phase 2: WAL Catch-up.
117 pub fn start_wal_catchup(&mut self, start_lsn: u64, source_lsn: u64) {

Callers 3

full_lifecycleFunction · 0.80
phase1_base_copyFunction · 0.80

Calls

no outgoing calls

Tested by 2

full_lifecycleFunction · 0.64