Commit 2bba96a1 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Added another transaction error to the list that DBConnection catches

parent 14a8c971
......@@ -188,7 +188,9 @@ sub protected_prepare_execute { # try to resolve certain mysql "Deadlocks" b
} or do {
$query_msg = "QUERY: $sql_cmd, PARAMS: (".join(', ',@$sql_params).")";
if( $@ =~ /Deadlock found when trying to get lock; try restarting transaction/ ) {
if( ($@ =~ /Deadlock found when trying to get lock; try restarting transaction/) # MySQL error
or ($@ =~ /Lock wait timeout exceeded; try restarting transaction/) # MySQL error
) {
my $this_sleep_sec = int( rand( $sleep_max_sec )*100 ) / 100.0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment