From da2793e1e59b4488ea21c93900e74b2badb60b99 Mon Sep 17 00:00:00 2001 From: csuzhangxc Date: Wed, 25 Sep 2019 15:56:52 +0800 Subject: [PATCH] dmctl: address comment --- dm/ctl/master/break_ddl_lock.go | 2 +- dm/ctl/master/pause_relay.go | 2 +- dm/ctl/master/purge_relay.go | 4 ++-- dm/ctl/master/resume_relay.go | 2 +- dm/ctl/master/switch_relay_master.go | 2 +- dm/ctl/master/unlock_ddl_lock.go | 2 +- dm/ctl/master/update_relay.go | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dm/ctl/master/break_ddl_lock.go b/dm/ctl/master/break_ddl_lock.go index db07444fb7..544fd5409f 100644 --- a/dm/ctl/master/break_ddl_lock.go +++ b/dm/ctl/master/break_ddl_lock.go @@ -51,7 +51,7 @@ func breakDDLLockFunc(cmd *cobra.Command, _ []string) { return } if len(workers) == 0 { - fmt.Println("must specify at least one dm-worker (`-w` / `--worker`)") + fmt.Println("must specify at least one DM-worker (`-w` / `--worker`)") return } diff --git a/dm/ctl/master/pause_relay.go b/dm/ctl/master/pause_relay.go index 05778c9371..9d81259e84 100644 --- a/dm/ctl/master/pause_relay.go +++ b/dm/ctl/master/pause_relay.go @@ -46,7 +46,7 @@ func pauseRelayFunc(cmd *cobra.Command, _ []string) { return } if len(workers) == 0 { - fmt.Println("must specify at least one dm-worker (`-w` / `--worker`)") + fmt.Println("must specify at least one DM-worker (`-w` / `--worker`)") return } diff --git a/dm/ctl/master/purge_relay.go b/dm/ctl/master/purge_relay.go index 031a2c9019..0bb8208e95 100644 --- a/dm/ctl/master/purge_relay.go +++ b/dm/ctl/master/purge_relay.go @@ -65,7 +65,7 @@ func purgeRelayFunc(cmd *cobra.Command, _ []string) { return } if len(workers) == 0 { - fmt.Println("must specify at least one dm-worker (`-w` / `--worker`)") + fmt.Println("must specify at least one DM-worker (`-w` / `--worker`)") return } @@ -121,7 +121,7 @@ func purgeRelayFunc(cmd *cobra.Command, _ []string) { //} if len(filename) > 0 && len(workers) > 1 { - fmt.Println("for --filename, can only specify one dm-worker per time") + fmt.Println("for --filename, can only specify one DM-worker per time") return } if len(subDir) > 0 { diff --git a/dm/ctl/master/resume_relay.go b/dm/ctl/master/resume_relay.go index 883656c44d..9e70d330fe 100644 --- a/dm/ctl/master/resume_relay.go +++ b/dm/ctl/master/resume_relay.go @@ -46,7 +46,7 @@ func resumeRelayFunc(cmd *cobra.Command, _ []string) { return } if len(workers) == 0 { - fmt.Println("must specify at least one dm-worker (`-w` / `--worker`)") + fmt.Println("must specify at least one DM-worker (`-w` / `--worker`)") return } diff --git a/dm/ctl/master/switch_relay_master.go b/dm/ctl/master/switch_relay_master.go index f357212617..f1991e9fd7 100644 --- a/dm/ctl/master/switch_relay_master.go +++ b/dm/ctl/master/switch_relay_master.go @@ -47,7 +47,7 @@ func switchRelayMasterFunc(cmd *cobra.Command, _ []string) { return } if len(workers) == 0 { - fmt.Println("must specify at least one dm-worker (`-w` / `--worker`)") + fmt.Println("must specify at least one DM-worker (`-w` / `--worker`)") return } diff --git a/dm/ctl/master/unlock_ddl_lock.go b/dm/ctl/master/unlock_ddl_lock.go index 21138aa1a9..2cf5adf739 100644 --- a/dm/ctl/master/unlock_ddl_lock.go +++ b/dm/ctl/master/unlock_ddl_lock.go @@ -31,7 +31,7 @@ func NewUnlockDDLLockCmd() *cobra.Command { Short: "forcefully unlock DDL lock", Run: unlockDDLLockFunc, } - cmd.Flags().StringP("owner", "o", "", "dm-worker to replace the default owner") + cmd.Flags().StringP("owner", "o", "", "DM-worker to replace the default owner") cmd.Flags().BoolP("force-remove", "f", false, "force to remove DDL lock") return cmd } diff --git a/dm/ctl/master/update_relay.go b/dm/ctl/master/update_relay.go index 4372c620d3..ddc0acda19 100644 --- a/dm/ctl/master/update_relay.go +++ b/dm/ctl/master/update_relay.go @@ -49,7 +49,7 @@ func updateRelayFunc(cmd *cobra.Command, _ []string) { workers, _ := common.GetWorkerArgs(cmd) if len(workers) != 1 { - fmt.Println("must specify one dm-worker (`-w` / `--worker`)") + fmt.Println("must specify one DM-worker (`-w` / `--worker`)") return }