include deadlocks among the type of errors that can be retried

This commit is contained in:
Frank Cizmich
2014-07-28 14:52:38 -03:00
parent ce0a9b0422
commit ccfe78b9f3
5 changed files with 6 additions and 4 deletions

View File

@@ -10561,6 +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/
) {
# These errors/warnings can be retried, so don't print
# a warning yet; do that in final_fail.
@@ -10586,6 +10587,7 @@ sub exec_nibble {
if ( $error =~ /Lock wait timeout exceeded/
|| $error =~ /Query execution was interrupted/
|| $error =~ /Deadlock found when trying to get lock/
) {
# These errors/warnings are not fatal but only cause this
# nibble to be skipped.