From 5e4870f951f1cd084c24e836f311707381fa3b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 2 Oct 2023 16:22:17 +0000 Subject: [PATCH] Fix newly discovered typos --- bin/pt-online-schema-change | 4 ++-- bin/pt-table-checksum | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 350ab10fe..5dac0410a 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -11175,7 +11175,7 @@ sub determine_alter_fk_method { return ''; # $alter_fk_method can't be undef } - # The rebuild_constraints method is the default becuase it's safer + # The rebuild_constraints method is the default because it's safer # and doesn't cause the orig table to go missing for a moment. my $method = 'rebuild_constraints'; @@ -11630,7 +11630,7 @@ sub random_suffix { # duplicate_trigger: If set, it will create the trigger on the new table # with a random string as a trigger name suffix. # It will also not drop the original trigger. -# This is usefull when creating a temporary trigger for testing +# This is useful when creating a temporary trigger for testing # purposes or if --no-swap-tables AND --no-drop-new-table was # specified along with --preserve-triggers. In this case, # since the original table and triggers are not going to be diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index 967dab5a8..7e9e2dc55 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -10955,11 +10955,11 @@ sub main { # the user does --chunk-size-limit=0 to disable the 1st, documented # purpose because, apparently, they're using non-unique indexes and # they don't care about potentially large chunks. But disabling the - # 1st purpose adversely affects the 2nd purpose becuase 0 * the chunk size + # 1st purpose adversely affects the 2nd purpose because 0 * the chunk size # will always be zero, so tables will only be single-chunked if EXPLAIN # says there are 0 rows, but sometimes EXPLAIN says there is 1 row # even when the table is empty. This wouldn't matter except that nibbling - # an empty table doesn't currently work becuase there are no boundaries, + # an empty table doesn't currently work because there are no boundaries, # so no checksum is written for the empty table. To fix this and # preserve the two purposes of this option, usages of the 2nd purpose # do || 1 so the limit is never 0 and empty tables are single-chunked.