Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
dmctl: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Sep 25, 2019
1 parent f24325c commit da2793e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dm/ctl/master/break_ddl_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion dm/ctl/master/pause_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions dm/ctl/master/purge_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion dm/ctl/master/resume_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion dm/ctl/master/switch_relay_master.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion dm/ctl/master/unlock_ddl_lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion dm/ctl/master/update_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit da2793e

Please sign in to comment.