|
@@ 618-622 (lines=5) @@
|
| 615 |
|
$fix_tables = array_unique($fix_tables); |
| 616 |
|
} |
| 617 |
|
// Table crashed. Let's try to fix it. |
| 618 |
|
elseif ($query_errno == 1016) |
| 619 |
|
{ |
| 620 |
|
if (preg_match('~\'([^\.\']+)~', $query_error, $match) != 0) |
| 621 |
|
$fix_tables = array('`' . $match[1] . '`'); |
| 622 |
|
} |
| 623 |
|
// Indexes crashed. Should be easy to fix! |
| 624 |
|
elseif ($query_errno == 1034 || $query_errno == 1035) |
| 625 |
|
{ |
|
@@ 624-628 (lines=5) @@
|
| 621 |
|
$fix_tables = array('`' . $match[1] . '`'); |
| 622 |
|
} |
| 623 |
|
// Indexes crashed. Should be easy to fix! |
| 624 |
|
elseif ($query_errno == 1034 || $query_errno == 1035) |
| 625 |
|
{ |
| 626 |
|
preg_match('~\'([^\']+?)\'~', $query_error, $match); |
| 627 |
|
$fix_tables = array('`' . $match[1] . '`'); |
| 628 |
|
} |
| 629 |
|
} |
| 630 |
|
|
| 631 |
|
// Check for errors like 145... only fix it once every three days, and send an email. (can't use empty because it might not be set yet...) |