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

Method fail

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

Mark migration as failed. Source remains authoritative.

(&mut self, reason: String)

Source from the content-addressed store, hash-verified

196
197 /// Mark migration as failed. Source remains authoritative.
198 pub fn fail(&mut self, reason: String) {
199 warn!(
200 vshard = self.vshard_id,
201 reason = %reason,
202 "migration failed, source remains authoritative"
203 );
204 self.phase = MigrationPhase::Failed { reason };
205 }
206
207 pub fn is_active(&self) -> bool {
208 !matches!(

Callers 3

failure_recoveryFunction · 0.45
phase2_wal_catchupFunction · 0.45
phase3_cutoverFunction · 0.45

Calls

no outgoing calls

Tested by 1

failure_recoveryFunction · 0.36