From b50f57c707ef1d976fa82c6e29ed48af497ba00d Mon Sep 17 00:00:00 2001 From: SataQiu Date: Wed, 24 Apr 2019 18:21:07 +0800 Subject: [PATCH] fix some spelling mistakes Signed-off-by: SataQiu --- doc/VitessApi.md | 2 +- examples/helm/kmysql.sh | 2 +- go/cmd/automation_client/automation_client.go | 2 +- go/cmd/mysqlctl/mysqlctl.go | 6 +++--- go/cmd/vtctld/schema.go | 2 +- go/cmd/vtexplain/vtexplain.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/VitessApi.md b/doc/VitessApi.md index 5e9bf57e37..61b5ffc10a 100644 --- a/doc/VitessApi.md +++ b/doc/VitessApi.md @@ -839,7 +839,7 @@ Field describes a single column returned by a query | org_name
string| | | column_length
uint32| column_length is really a uint32. All 32 bits can be used. | | charset
uint32| charset is actually a uint16. Only the lower 16 bits are used. | -| decimals
uint32| decimals is actualy a uint8. Only the lower 8 bits are used. | +| decimals
uint32| decimals is actually a uint8. Only the lower 8 bits are used. | | flags
uint32| flags is actually a uint16. Only the lower 16 bits are used. | ### query.QueryResult diff --git a/examples/helm/kmysql.sh b/examples/helm/kmysql.sh index eb9d5c5c68..6525448a62 100755 --- a/examples/helm/kmysql.sh +++ b/examples/helm/kmysql.sh @@ -20,7 +20,7 @@ host=$(minikube service vtgate-zone1 --format "{{.IP}}" | tail -n 1) port=$(minikube service vtgate-zone1 --format "{{.Port}}" | tail -n 1) if [ -z $port ]; then - #This checks K8s runing on an single node by kubeadm + #This checks K8s running on an single node by kubeadm if [ $(kubectl get nodes | grep -v NAM | wc -l) -eq 1 -o $(kubectl get nodes | grep -v NAM | grep master | wc -l ) -eq 1 ]; then host="127.0.0.1" port=`kubectl describe service vtgate-zone1 | grep NodePort | grep mysql | awk '{print $3}' | awk -F'/' '{print $1}'` diff --git a/go/cmd/automation_client/automation_client.go b/go/cmd/automation_client/automation_client.go index 73e16245b7..1f4b6d965e 100644 --- a/go/cmd/automation_client/automation_client.go +++ b/go/cmd/automation_client/automation_client.go @@ -106,7 +106,7 @@ func main() { fmt.Printf("SUCCESS: ClusterOperation finished.\n\nDetails:\n%v", proto.MarshalTextString(resp)) } -// waitForClusterOp polls and blocks until the ClusterOperation invocation specified by "id" has finished. If an error occured, it will be returned. +// waitForClusterOp polls and blocks until the ClusterOperation invocation specified by "id" has finished. If an error occurred, it will be returned. func waitForClusterOp(client automationservicepb.AutomationClient, id string) (*automationpb.GetClusterOperationDetailsResponse, error) { for { req := &automationpb.GetClusterOperationDetailsRequest{ diff --git a/go/cmd/mysqlctl/mysqlctl.go b/go/cmd/mysqlctl/mysqlctl.go index 23db8721b7..2f39206a00 100644 --- a/go/cmd/mysqlctl/mysqlctl.go +++ b/go/cmd/mysqlctl/mysqlctl.go @@ -197,11 +197,11 @@ type command struct { var commands = []command{ {"init", initCmd, "[-wait_time=5m] [-init_db_sql_file=]", - "Initalizes the directory structure and starts mysqld"}, + "Initializes the directory structure and starts mysqld"}, {"init_config", initConfigCmd, "", - "Initalizes the directory structure, creates my.cnf file, but does not start mysqld"}, + "Initializes the directory structure, creates my.cnf file, but does not start mysqld"}, {"reinit_config", reinitConfigCmd, "", - "Reinitalizes my.cnf file with new server_id"}, + "Reinitializes my.cnf file with new server_id"}, {"teardown", teardownCmd, "[-wait_time=5m] [-force]", "Shuts mysqld down, and removes the directory"}, {"start", startCmd, "[-wait_time=5m]", diff --git a/go/cmd/vtctld/schema.go b/go/cmd/vtctld/schema.go index 1248938d6a..3268e2de1c 100644 --- a/go/cmd/vtctld/schema.go +++ b/go/cmd/vtctld/schema.go @@ -33,7 +33,7 @@ import ( var ( schemaChangeDir = flag.String("schema_change_dir", "", "directory contains schema changes for all keyspaces. Each keyspace has its own directory and schema changes are expected to live in '$KEYSPACE/input' dir. e.g. test_keyspace/input/*sql, each sql file represents a schema change") - schemaChangeController = flag.String("schema_change_controller", "", "schema change controller is responsible for finding schema changes and responsing schema change events") + schemaChangeController = flag.String("schema_change_controller", "", "schema change controller is responsible for finding schema changes and responding to schema change events") schemaChangeCheckInterval = flag.Int("schema_change_check_interval", 60, "this value decides how often we check schema change dir, in seconds") schemaChangeUser = flag.String("schema_change_user", "", "The user who submits this schema change.") schemaChangeSlaveTimeout = flag.Duration("schema_change_slave_timeout", 10*time.Second, "how long to wait for slaves to receive the schema change") diff --git a/go/cmd/vtexplain/vtexplain.go b/go/cmd/vtexplain/vtexplain.go index dd81f4db2d..50dde58107 100644 --- a/go/cmd/vtexplain/vtexplain.go +++ b/go/cmd/vtexplain/vtexplain.go @@ -64,7 +64,7 @@ func usage() { for _, name := range vtexplainFlags { f := flag.Lookup(name) if f == nil { - panic("unkown flag " + name) + panic("unknown flag " + name) } flagUsage(f) }