From 9c5540b010bcc70cc7b253e82a699d87ccffdf92 Mon Sep 17 00:00:00 2001 From: Frank Cizmich Date: Wed, 30 Jul 2014 12:56:05 -0300 Subject: [PATCH] minimized error string match to favour compatibility --- bin/pt-table-checksum | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index 2a9685e8..cc5f7af7 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -10561,7 +10561,7 @@ sub exec_nibble { if ( $error =~ m/Lock wait timeout exceeded/ || $error =~ m/Query execution was interrupted/ - || $error =~ m/Deadlock found when trying to get lock/ + || $error =~ m/Deadlock found/ ) { # These errors/warnings can be retried, so don't print # a warning yet; do that in final_fail. @@ -10585,9 +10585,9 @@ sub exec_nibble { my (%args) = @_; my $error = $args{error}; - if ( $error =~ /Lock wait timeout exceeded/ - || $error =~ /Query execution was interrupted/ - || $error =~ /Deadlock found when trying to get lock/ + if ( $error =~ m/Lock wait timeout exceeded/ + || $error =~ m/Query execution was interrupted/ + || $error =~ m/Deadlock found/ ) { # These errors/warnings are not fatal but only cause this # nibble to be skipped.