Tweaks comment to be more correct.

This commit is contained in:
James Phillips 2016-08-31 23:54:53 -07:00
parent c8b184cfd2
commit 79aec1b34b
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ func (s *Server) maybeBootstrap() {
// Found a node with some Raft peers, stop bootstrap since there's // Found a node with some Raft peers, stop bootstrap since there's
// evidence of an existing cluster. We should get folded in by the // evidence of an existing cluster. We should get folded in by the
// existing servers if that's the case, so it's safer to sit as a // existing servers if that's the case, so it's cleaner to sit as a
// candidate with no peers so we don't cause spurious elections. // candidate with no peers so we don't cause spurious elections.
// It's OK this is racy, because even with an initial bootstrap // It's OK this is racy, because even with an initial bootstrap
// as long as one peer runs bootstrap things will work, and if we // as long as one peer runs bootstrap things will work, and if we