From 924d13b67783c85793017771c8416e651bce03ef Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Sun, 7 Mar 2021 08:46:20 +0200 Subject: [PATCH] typos fixed per review Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- go/test/endtoend/onlineddl_revert/onlineddl_revert_test.go | 6 +++--- go/vt/schema/online_ddl.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/test/endtoend/onlineddl_revert/onlineddl_revert_test.go b/go/test/endtoend/onlineddl_revert/onlineddl_revert_test.go index 3d7f9186810..b9542378e75 100644 --- a/go/test/endtoend/onlineddl_revert/onlineddl_revert_test.go +++ b/go/test/endtoend/onlineddl_revert/onlineddl_revert_test.go @@ -1,5 +1,5 @@ /* -Copyright 2019 The Vitess Authors. +Copyright 2021 The Vitess Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -275,7 +275,7 @@ func TestSchemaChange(t *testing.T) { testSelectTableMetrics(t) }) t.Run("fail revert older change", func(t *testing.T) { - // We shouldn't be able to revert one-before-last succcessfulk migration. + // We shouldn't be able to revert one-before-last succcessful migration. uuid := testRevertMigration(t, uuids[len(uuids)-2]) uuids = append(uuids, uuid) checkRecentMigrations(t, uuid, schema.OnlineDDLStatusFailed) @@ -544,7 +544,7 @@ func checkRecentMigrations(t *testing.T, uuid string, expectStatus schema.Online fmt.Println("# 'vtctlclient OnlineDDL show recent' output (for debug purposes):") fmt.Println(result) assert.Equal(t, len(clusterInstance.Keyspaces[0].Shards), strings.Count(result, uuid)) - // We ensure "full word" regexp becuase some column names may conflict + // We ensure "full word" regexp because some column names may conflict expectStatusRegexp := fullWordUUIDRegexp(uuid, string(expectStatus)) m := expectStatusRegexp.FindAllString(result, -1) assert.Equal(t, len(clusterInstance.Keyspaces[0].Shards), len(m)) diff --git a/go/vt/schema/online_ddl.go b/go/vt/schema/online_ddl.go index bc3f89f3485..0cad7c3e3a3 100644 --- a/go/vt/schema/online_ddl.go +++ b/go/vt/schema/online_ddl.go @@ -239,7 +239,7 @@ func (onlineDDL *OnlineDDL) GetActionStr() (action sqlparser.DDLAction, actionSt // GetRevertUUID works when this migration is a revert for another migration. It returns the UUID // fo the reverted migration. -// The functio nreturns error when this is not a revert migration. +// The function returns error when this is not a revert migration. func (onlineDDL *OnlineDDL) GetRevertUUID() (uuid string, err error) { if submatch := revertStatementRegexp.FindStringSubmatch(onlineDDL.SQL); len(submatch) > 0 { return submatch[1], nil