diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 532c473a..d36cbd9e 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -7985,13 +7985,13 @@ sub main { # ######################################################################## # Print --tries. # ######################################################################## -# print "Operation, tries, wait:\n"; -# { -# my $fmt = " %s, %s, %s\n"; -# foreach my $op ( sort keys %$tries ) { -# printf $fmt, $op, $tries->{$op}->{tries}, $tries->{$op}->{wait}; -# } -# } + print "Operation, tries, wait:\n"; + { + my $fmt = " %s, %s, %s\n"; + foreach my $op ( sort keys %$tries ) { + printf $fmt, $op, $tries->{$op}->{tries}, $tries->{$op}->{wait}; + } + } # ######################################################################## # Get child tables of the original table, if necessary. diff --git a/t/pt-online-schema-change/samples/stats-dry-run.txt b/t/pt-online-schema-change/samples/stats-dry-run.txt index dec86793..672904e9 100644 --- a/t/pt-online-schema-change/samples/stats-dry-run.txt +++ b/t/pt-online-schema-change/samples/stats-dry-run.txt @@ -1,3 +1,9 @@ +Operation, tries, wait: + copy_rows, 10, 0.25 + create_triggers, 10, 1 + drop_triggers, 10, 1 + swap_tables, 10, 1 + update_foreign_keys, 10, 1 Starting a dry run. `bug_1045317`.`bits` will not be altered. Specify --execute instead of --dry-run to alter the table. Not dropping triggers because this is a dry run. Dropping new table... diff --git a/t/pt-online-schema-change/samples/stats-execute-5.5.txt b/t/pt-online-schema-change/samples/stats-execute-5.5.txt index 9947355d..6cfc1b1d 100644 --- a/t/pt-online-schema-change/samples/stats-execute-5.5.txt +++ b/t/pt-online-schema-change/samples/stats-execute-5.5.txt @@ -1,3 +1,9 @@ +Operation, tries, wait: + copy_rows, 10, 0.25 + create_triggers, 10, 1 + drop_triggers, 10, 1 + swap_tables, 10, 1 + update_foreign_keys, 10, 1 Altering `bug_1045317`.`bits`... Dropping triggers... Dropped triggers OK.