From 60a5e3421a8bf3ee2e7720986943919b77dff43a Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Sun, 14 Jul 2024 00:28:30 +0200 Subject: [PATCH] update flag Signed-off-by: Tim Vaillancourt --- go/flags/endtoend/vtcombo.txt | 2 +- go/flags/endtoend/vttablet.txt | 2 +- go/vt/vttablet/tabletmanager/tm_init.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go/flags/endtoend/vtcombo.txt b/go/flags/endtoend/vtcombo.txt index 5b0ebc62897..2501c76e6ed 100644 --- a/go/flags/endtoend/vtcombo.txt +++ b/go/flags/endtoend/vtcombo.txt @@ -260,7 +260,7 @@ Flags: --port int port for the server --pprof strings enable profiling --pprof-http enable pprof http endpoints - --promotion-rule topodatapb.PromotionRule The override Promotion Rule for this tablet. Use 'must_not' with caution as it can lead to issues with reparenting. (default none) + --promotion-rule topodatapb.PromotionRule Sets the override Promotion Rule for this tablet. Possible values 'none', 'neutral', 'prefer', 'prefer_not' and 'must_not'. Use 'must_not' with caution as it can lead to issues with reparenting. (default none) --proto_topo vttest.TopoData vttest proto definition of the topology, encoded in compact text format. See vttest.proto for more information. --proxy_protocol Enable HAProxy PROXY protocol on MySQL listener socket --proxy_tablets Setting this true will make vtctld proxy the tablet status instead of redirecting to them diff --git a/go/flags/endtoend/vttablet.txt b/go/flags/endtoend/vttablet.txt index 287c8cfa269..ba1c31b8dff 100644 --- a/go/flags/endtoend/vttablet.txt +++ b/go/flags/endtoend/vttablet.txt @@ -256,7 +256,7 @@ Flags: --port int port for the server --pprof strings enable profiling --pprof-http enable pprof http endpoints - --promotion-rule topodatapb.PromotionRule The override Promotion Rule for this tablet. Use 'must_not' with caution as it can lead to issues with reparenting. (default none) + --promotion-rule topodatapb.PromotionRule Sets the override Promotion Rule for this tablet. Possible values 'none', 'neutral', 'prefer', 'prefer_not' and 'must_not'. Use 'must_not' with caution as it can lead to issues with reparenting. (default none) --pt-osc-path string override default pt-online-schema-change binary full path (default "/usr/bin/pt-online-schema-change") --publish_retry_interval duration how long vttablet waits to retry publishing the tablet record (default 30s) --purge_logs_interval duration how often try to remove old logs (default 1h0m0s) diff --git a/go/vt/vttablet/tabletmanager/tm_init.go b/go/vt/vttablet/tabletmanager/tm_init.go index e206baaa7b8..409d8b5f086 100644 --- a/go/vt/vttablet/tabletmanager/tm_init.go +++ b/go/vt/vttablet/tabletmanager/tm_init.go @@ -106,7 +106,7 @@ func registerInitFlags(fs *pflag.FlagSet) { fs.Var(&initTags, "init_tags", "(init parameter) comma separated list of key:value pairs used to tag the tablet") fs.DurationVar(&initTimeout, "init_timeout", initTimeout, "(init parameter) timeout to use for the init phase.") fs.DurationVar(&mysqlShutdownTimeout, "mysql-shutdown-timeout", mysqlShutdownTimeout, "timeout to use when MySQL is being shut down.") - fs.Var((*topoproto.PromotionRuleFlag)(&promotionRule), "promotion-rule", "The override Promotion Rule for this tablet. Use 'must_not' with caution as it can lead to issues with reparenting.") + fs.Var((*topoproto.PromotionRuleFlag)(&promotionRule), "promotion-rule", "Sets the override Promotion Rule for this tablet. Possible values 'none', 'neutral', 'prefer', 'prefer_not' and 'must_not'. Use 'must_not' with caution as it can lead to issues with reparenting.") } var (