Note in docs: As of pt-table-checksum 2.2.5, skipped chunks cause a non-zero exit status. Also report skipped chunks due to lock wait timeout and killed query like other skipped chunks. Enhance explanation of SKIPPED column.

This commit is contained in:
Daniel Nichter
2013-10-10 12:21:39 -07:00
parent be8da58940
commit 4805b7b5c8
6 changed files with 43 additions and 14 deletions

View File

@@ -730,6 +730,10 @@ sub normalize_checksum_results {
printf $fh $output;
close $fh;
my $normal_output = `cat $tmp_file | awk '/^[0-9 ]/ {print \$2 " " \$3 " " \$4 " " \$5 " " \$6 " " \$8} /^[A-Z]/ {print \$0}'`;
if ( wantarray ) {
my $original_output = `cat $tmp_file`;
return $normal_output, $original_output;
}
`rm $tmp_file >/dev/null`;
return $normal_output;
}