etcdserver: support Raft Pre-Vote
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
@ -258,6 +258,12 @@ type EtcdServer struct {
|
||||
// NewServer creates a new EtcdServer from the supplied configuration. The
|
||||
// configuration is considered static for the lifetime of the EtcdServer.
|
||||
func NewServer(cfg ServerConfig) (srv *EtcdServer, err error) {
|
||||
if cfg.PreVote {
|
||||
plog.Info("Raft Pre-Vote is enabled")
|
||||
} else {
|
||||
plog.Info("Raft Pre-Vote is disabled")
|
||||
}
|
||||
|
||||
st := v2store.New(StoreClusterPrefix, StoreKeysPrefix)
|
||||
|
||||
var (
|
||||
|
Reference in New Issue
Block a user