Skip to content

Commit

Permalink
Recover each node synchronously
Browse files Browse the repository at this point in the history
This was done to avoid deadlocks in situations where two recovering
domains have egresses to each other. See
#37 (comment)
  • Loading branch information
ekmartin committed Nov 12, 2017
1 parent a618597 commit 8126b20
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/controller/mod.rs
Expand Up @@ -527,11 +527,6 @@ impl ControllerInner {
let node = &self.ingredients[*index];
let domain = self.domains.get_mut(&node.domain()).unwrap();
domain.send(box payload::Packet::StartRecovery).unwrap();
}

for (_name, index) in self.inputs(()).iter() {
let node = &self.ingredients[*index];
let domain = self.domains.get_mut(&node.domain()).unwrap();
domain.wait_for_ack().unwrap();
}
}
Expand Down

0 comments on commit 8126b20

Please sign in to comment.