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

Method complete

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

Complete the migration.

(&mut self, actual_pause_us: u64)

Source from the content-addressed store, hash-verified

184
185 /// Complete the migration.
186 pub fn complete(&mut self, actual_pause_us: u64) {
187 self.phase = MigrationPhase::Completed {
188 pause_duration_us: actual_pause_us,
189 };
190 info!(
191 vshard = self.vshard_id,
192 pause_us = actual_pause_us,
193 "migration completed"
194 );
195 }
196
197 /// Mark migration as failed. Source remains authoritative.
198 pub fn fail(&mut self, reason: String) {

Callers 3

full_lifecycleFunction · 0.45
phase3_cutoverFunction · 0.45

Calls

no outgoing calls

Tested by 2

full_lifecycleFunction · 0.36