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

Method start_base_copy

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

Start Phase 1: Base Copy.

(&mut self, bytes_total: u64)

Source from the content-addressed store, hash-verified

89
90 /// Start Phase 1: Base Copy.
91 pub fn start_base_copy(&mut self, bytes_total: u64) {
92 self.started_at = Some(Instant::now());
93 self.phase = MigrationPhase::BaseCopy {
94 bytes_transferred: 0,
95 bytes_total,
96 };
97 info!(
98 vshard = self.vshard_id,
99 source = self.source_node,
100 target = self.target_node,
101 bytes_total,
102 "starting base copy"
103 );
104 }
105
106 /// Update base copy progress.
107 pub fn update_base_copy(&mut self, bytes_transferred: u64) {

Callers 7

full_lifecycleFunction · 0.80
pause_budget_exceededFunction · 0.80
failure_recoveryFunction · 0.80
catchup_thresholdFunction · 0.80
phase1_base_copyFunction · 0.80

Calls 1

nowFunction · 0.85

Tested by 6

full_lifecycleFunction · 0.64
pause_budget_exceededFunction · 0.64
failure_recoveryFunction · 0.64
catchup_thresholdFunction · 0.64