提交 3058f8e5 编写于 作者: J Joao Sousa

Fixed bug in initialization, which would make replicas always select replica 0...

Fixed bug in initialization, which would make replicas always select replica 0 as the leader, regardless if it was part of the view or not.
上级 66ed93eb
......@@ -104,7 +104,10 @@ public final class ExecutionManager {
/******************************************************************/
//******* EDUARDO END **************//
currentLeader = 0; // initial leader is replica 0
// Get initial leader
if (controller.getCurrentViewAcceptors().length > 0)
currentLeader = controller.getCurrentViewAcceptors()[0];
else currentLeader = 0;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册