Skip to content

Commit

Permalink
Return the state with new round after phase1b
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Jun 24, 2016
1 parent a7ff6c4 commit dd6ba08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/cfabcast/agents/Acceptor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 65,13 @@ trait Acceptor extends ActorLogging {
if (oldState.rnd < msg.rnd && (msg.rnd.coordinator contains actorSender)) {
val newState = oldState.copy(rnd = msg.rnd)
actorSender ! Msg1B(id, msg.instance, newState.rnd, newState.vrnd, newState.vval)
//FIXME: return newstate was not specified in protocol, but round needs to be updated
return newState
} else {
log.warning("INSTANCE: {} - {} PHASE1B message round: {} < state rnd: {}", msg.instance, id, msg.rnd, oldState.rnd)
actorSender ! UpdateRound(msg.instance, oldState.rnd)
}
oldState
return oldState
}

def acceptorBehavior(config: ClusterConfiguration, instances: Map[Instance, Future[AcceptorMeta]])(implicit ec: ExecutionContext): Receive = {
Expand Down

0 comments on commit dd6ba08

Please sign in to comment.