src/services/terms.go
BeforeProposed
+1−0
88 if term > node.Term {
99 node.Term = term
1010 node.Role = "follower"
11 node.VotedFor = nil
1112 node.Matches = map[string]int{}
1213 }
1314}
Opening your workspace…
Opening review…
Review the independently proposed patch below, including its unchanged callers. A higher term clears the previous vote. A second candidate in the same term must still be rejected after that reset. Repair both transition and vote policy.
Review focus: Consensus log transitions
0 / 10,000 characters · A verdict needs supporting evidence.
Sign in to view your reviews.