Commit 9b9468b4 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Improve last revision.

parent 19122fd2
......@@ -2353,16 +2353,17 @@ sub DBQuery($)
while ($maxtries) {
$result = $DB->query($query);
if (! defined($result)) {
my $err = $DB->err;
$DBErrorString =
" Query: $query\n".
" Error: " . $DB->errstr;
" Error: " . $DB->errstr . " ($err)";
}
if (defined($result) || $DB->err != 2006) {
last;
}
my $err = $DB->err;
DBWarn("mysqld went away ($err). $maxtries tries left", 0);
DBWarn("mysqld went away. $maxtries tries left", 0);
$maxtries--;
sleep(1);
}
......
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