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

Method migration_completed

nodedb-cluster/src/rebalance_scheduler.rs:184–189  ·  view source on GitHub ↗

Record that a migration has completed.

(&mut self, vshard_id: u32)

Source from the content-addressed store, hash-verified

182
183 /// Record that a migration has completed.
184 pub fn migration_completed(&mut self, vshard_id: u32) {
185 self.active_migrations.remove(&vshard_id);
186 if self.active_migrations.is_empty() {
187 self.last_rebalance = Some(Instant::now());
188 }
189 }
190
191 /// Check if a specific tenant can start another migration.
192 pub fn can_migrate_tenant(&self, tenant_id: u64) -> bool {

Callers

nothing calls this directly

Calls 3

nowFunction · 0.85
removeMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected