From b48d3eb380240096299d824decda710223eedb4a Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 23 Feb 2018 10:55:08 -0800 Subject: [PATCH] etcdmain: add "--experimental-pre-vote" flag Signed-off-by: Gyuho Lee --- etcdmain/config.go | 1 + etcdmain/help.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/etcdmain/config.go b/etcdmain/config.go index a78338b636d..54363fd949f 100644 --- a/etcdmain/config.go +++ b/etcdmain/config.go @@ -218,6 +218,7 @@ func newConfig() *config { // experimental fs.BoolVar(&cfg.ec.ExperimentalInitialCorruptCheck, "experimental-initial-corrupt-check", cfg.ec.ExperimentalInitialCorruptCheck, "Enable to check data corruption before serving any client/peer traffic.") fs.DurationVar(&cfg.ec.ExperimentalCorruptCheckTime, "experimental-corrupt-check-time", cfg.ec.ExperimentalCorruptCheckTime, "Duration of time between cluster corruption check passes.") + fs.BoolVar(&cfg.ec.ExperimentalPreVote, "experimental-pre-vote", cfg.ec.ExperimentalPreVote, "Enable to run an additional Raft election phase.") // ignored for _, f := range cfg.ignored { diff --git a/etcdmain/help.go b/etcdmain/help.go index 600a336f44a..a806bc5db36 100644 --- a/etcdmain/help.go +++ b/etcdmain/help.go @@ -197,5 +197,7 @@ experimental flags: duration of time between cluster corruption check passes. --experimental-enable-v2v3 '' serve v2 requests through the v3 backend under a given prefix. + --experimental-pre-vote 'false' + enable to run an additional Raft election phase. ` )