Mercurial > lbo > hg > clusterconsensus
changeset 26:5079acb49d3b
Fix state after missed election
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 08 Oct 2016 16:44:54 +0200 |
parents | ceb051f71c28 |
children | 52d20e883c79 |
files | consensus.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/consensus.go Sat Oct 08 16:34:34 2016 +0200 +++ b/consensus.go Sat Oct 08 16:44:54 2016 +0200 @@ -208,7 +208,7 @@ } if acquiredVotes < requiredVotes { - p.participantState = state_PENDING_MASTER + p.participantState = state_PARTICIPANT_CLEAN return NewError(ERR_MAJORITY, fmt.Sprintf("No majority in master election: %v", errs), nil) }