Skip to content

Commit 247bc24

Browse files
Merge pull request #1013 from percona/PMM-11406-percona-toolkit-update
PMM-11406 Better check to prevent errors from missing fields.
2 parents 0289a1a + 2301bf9 commit 247bc24

File tree

13 files changed

+59
-58
lines changed

13 files changed

+59
-58
lines changed

bin/pt-kill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8731,7 +8731,7 @@ type: string; default: Query
87318731
87328732
group: Actions
87338733
8734-
Comma sepatated list of commands that will be watched/killed if they ran for
8734+
Comma separated list of commands that will be watched/killed if they ran for
87358735
more than L<"--busy-time"> seconds. Default: C<Query>
87368736
87378737
By default, L<"--busy-time"> kills only C<Query> commands but in some cases, it

bin/pt-online-schema-change

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11668,7 +11668,7 @@ sub check_orig_table {
1166811668
Cxn => $cxn,
1166911669
tbl => $orig_tbl,
1167011670
chunk_size => $o->get('chunk-size'),
11671-
chunk_indx => $o->get('chunk-index'),
11671+
chunk_index => $o->get('chunk-index'),
1167211672
OptionParser => $o,
1167311673
TableParser => $tp,
1167411674
);
@@ -13512,7 +13512,7 @@ New rows will use the user defined default value if specified for the column.
1351213512
=item --only-same-schema-fks
1351313513
1351413514
Check foreigns keys only on tables on the same schema than the original table.
13515-
This option is dangerous since if you have FKs refenrencing tables in other
13515+
This option is dangerous since if you have FKs referencing tables in other
1351613516
schemas, they won't be detected.
1351713517
1351813518

bin/pt-query-digest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6239,7 +6239,7 @@ sub _get_value {
62396239
unless $found_value;
62406240
}
62416241
else {
6242-
die "Event does not have attribute $attrib and there are no alterantes";
6242+
die "Event does not have attribute $attrib and there are no alternates";
62436243
}
62446244

62456245
return $value;

bin/pt-table-checksum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12591,7 +12591,7 @@ sub create_repl_table {
1259112591
#
1259212592
# Required Arguments:
1259312593
# * tbl - Standard tbl hashref
12594-
# * sth - Sth with EXLAIN <statement>
12594+
# * sth - Sth with EXPLAIN <statement>
1259512595
# * vals - Values for sth, if any
1259612596
#
1259712597
# Returns:

bin/pt-variable-advisor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6082,7 +6082,7 @@ as tmp_table_size.
60826082
severity: warn
60836083
60846084
These are the recommended minimum version for each major release: 3.23, 4.1.20,
6085-
5.0.37, 5.1.30, 5.5.8, 5.6.10, 5.7.9, 8.0.11. This optiion does not complain
6085+
5.0.37, 5.1.30, 5.5.8, 5.6.10, 5.7.9, 8.0.11. This option does not complain
60866086
about Innovation releases.
60876087
60886088
=item end-of-life mysql version

lib/Diskstats.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
# Package: Diskstats
2222
# This package implements most of the logic in the old shell pt-diskstats;
23-
# it parses data from /proc/diskstats, calculcates deltas, and prints those.
23+
# it parses data from /proc/diskstats, calculates deltas, and prints those.
2424

2525
package Diskstats;
2626

lib/EventAggregator.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ sub _get_value {
11931193
unless $found_value;
11941194
}
11951195
else {
1196-
die "Event does not have attribute $attrib and there are no alterantes";
1196+
die "Event does not have attribute $attrib and there are no alternates";
11971197
}
11981198

11991199
return $value;

lib/SQLParser.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ sub remove_functions {
12541254
# GROUP BY and ORDER BY specify a list of identifiers.
12551255
#
12561256
# Parameters:
1257-
# $idents - Arrayref of indentifiers
1257+
# $idents - Arrayref of identifiers
12581258
#
12591259
# Returns:
12601260
# Arrayref of hashes with each identifier's parts, depending on what kind

lib/SimpleTCPDumpParser.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ sub new {
7979
#
8080
# TCP requests and responses form "sessions", which can be in one of these
8181
# statuses:
82-
# [Q]uerying - The remote host is sending the query to the server.
83-
# [R]esponding - The server is replying back to the remote host.
82+
# Querying - The remote host is sending the query to the server.
83+
# Responding - The server is replying back to the remote host.
8484
sub parse_event {
8585
my ( $self, %args ) = @_;
8686
my @required_args = qw(next_event tell);

lib/TCPRequestAggregator.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ sub parse_event {
178178
# Otherwise, we need to compute the running sums and keep looping.
179179
else {
180180
if ( $self->{in_prg} ) {
181-
# $self->{current_ts} is intitially 0, which would seem likely to
181+
# $self->{current_ts} is initially 0, which would seem likely to
182182
# skew this computation. But $self->{in_prg} will be 0 also, and
183183
# $self->{current_ts} will get set immediately after this, so
184184
# anytime this if() block runs, it'll be OK.

0 commit comments

Comments
 (0)