瀏覽代碼

etcdmain: support experimental-corrupt-check-time flag

Anthony Romano 8 年之前
父節點
當前提交
86aeaad924
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 3 0
      etcdmain/config.go
  2. 4 0
      etcdmain/help.go

+ 3 - 0
etcdmain/config.go

@@ -216,6 +216,9 @@ func newConfig() *config {
 	// auth
 	fs.StringVar(&cfg.AuthToken, "auth-token", cfg.AuthToken, "Specify auth token specific options.")
 
+	// experimental
+	fs.DurationVar(&cfg.ExperimentalCorruptCheckTime, "experimental-corrupt-check-time", cfg.ExperimentalCorruptCheckTime, "Duration of time between cluster corruption check passes.")
+
 	// ignored
 	for _, f := range cfg.ignored {
 		fs.Var(&flags.IgnoredFlag{Name: f}, f, "")

+ 4 - 0
etcdmain/help.go

@@ -179,5 +179,9 @@ profiling flags:
 auth flags:
 	--auth-token 'simple'
 		Specify a v3 authentication token type and its options ('simple' or 'jwt').
+
+experimental flags:
+	--experimental-corrupt-check-time '0s'
+	        duration of time between cluster corruption check passes.
 `
 )