387677e251
* Disallow non-voter setting from peers.json * Fix bug that would make the actual fix a no-op * Change order of evaluation * Error out instead of resetting the value * Update physical/raft/raft.go Co-Authored-By: Calvin Leung Huang <cleung2010@gmail.com> * Print node ID Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
16 lines
287 B
Go
16 lines
287 B
Go
// +build !enterprise
|
|
|
|
package raft
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
)
|
|
|
|
const nonVotersAllowed = false
|
|
|
|
// AddPeer adds a new server to the raft cluster
|
|
func (b *RaftBackend) AddNonVotingPeer(ctx context.Context, peerID, clusterAddr string) error {
|
|
return errors.New("not implemented")
|
|
}
|