|
@@ 570-574 (lines=5) @@
|
| 567 |
|
$fix_tables = array_unique($fix_tables); |
| 568 |
|
} |
| 569 |
|
// Table crashed. Let's try to fix it. |
| 570 |
|
elseif ($query_errno == 1016) |
| 571 |
|
{ |
| 572 |
|
if (preg_match('~\'([^\.\']+)~', $query_error, $match) != 0) |
| 573 |
|
$fix_tables = array('`' . $match[1] . '`'); |
| 574 |
|
} |
| 575 |
|
// Indexes crashed. Should be easy to fix! |
| 576 |
|
elseif ($query_errno == 1034 || $query_errno == 1035) |
| 577 |
|
{ |
|
@@ 576-580 (lines=5) @@
|
| 573 |
|
$fix_tables = array('`' . $match[1] . '`'); |
| 574 |
|
} |
| 575 |
|
// Indexes crashed. Should be easy to fix! |
| 576 |
|
elseif ($query_errno == 1034 || $query_errno == 1035) |
| 577 |
|
{ |
| 578 |
|
preg_match('~\'([^\']+?)\'~', $query_error, $match); |
| 579 |
|
$fix_tables = array('`' . $match[1] . '`'); |
| 580 |
|
} |
| 581 |
|
} |
| 582 |
|
|
| 583 |
|
// 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...) |