This commit is contained in:
parent
134d958be8
commit
05c09d10f3
@ -225,7 +225,7 @@ defmodule Paxos do
|
||||
prepare(st, inst)
|
||||
end)
|
||||
|
||||
# Handles a proposal from the parent process
|
||||
# Handles a proposal message from the parent process
|
||||
{:propose, inst, value, pid_to_inform, action} ->
|
||||
log("#{state.name} - Propose #{inspect(inst)} with action #{inspect(action)}")
|
||||
|
||||
@ -320,7 +320,7 @@ defmodule Paxos do
|
||||
state
|
||||
end
|
||||
|
||||
# Handles a nack
|
||||
# Handles a nack message
|
||||
{:nack, inst, ballot} ->
|
||||
log("#{state.name} - nack #{inspect(inst)} #{inspect(ballot)}")
|
||||
|
||||
@ -348,7 +348,7 @@ defmodule Paxos do
|
||||
state
|
||||
end
|
||||
|
||||
# Handles an abort
|
||||
# Handles an abort message
|
||||
{:rb_deliver, _proc, {:abort, inst, _}} ->
|
||||
cond do
|
||||
has_finished(state, inst) ->
|
||||
@ -421,7 +421,7 @@ defmodule Paxos do
|
||||
end
|
||||
end
|
||||
|
||||
# Handles a accept
|
||||
# Handles an accept message
|
||||
# Sends out accept when a decide when a quoeom is met
|
||||
{:accepted, inst, ballot} ->
|
||||
log("#{state.name} - accepted #{inspect(inst)} #{inspect(ballot)}")
|
||||
|
Reference in New Issue
Block a user