Index: branches/FileBackend/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -712,6 +712,15 @@ |
713 | 713 | } |
714 | 714 | |
715 | 715 | /** |
| 716 | + * Determines if the last failure was due to a lock timeout |
| 717 | + * |
| 718 | + * @return bool |
| 719 | + */ |
| 720 | + function wasLockTimeout() { |
| 721 | + return $this->lastErrno() == 1205; |
| 722 | + } |
| 723 | + |
| 724 | + /** |
716 | 725 | * Determines if the last query error was something that should be dealt |
717 | 726 | * with by pinging the connection and reissuing the query |
718 | 727 | * |
Index: branches/FileBackend/phase3/includes/db/Database.php |
— | — | @@ -2650,6 +2650,16 @@ |
2651 | 2651 | } |
2652 | 2652 | |
2653 | 2653 | /** |
| 2654 | + * Determines if the last failure was due to a lock timeout |
| 2655 | + * STUB |
| 2656 | + * |
| 2657 | + * @return bool |
| 2658 | + */ |
| 2659 | + function wasLockTimeout() { |
| 2660 | + return false; |
| 2661 | + } |
| 2662 | + |
| 2663 | + /** |
2654 | 2664 | * Determines if the last query error was something that should be dealt |
2655 | 2665 | * with by pinging the connection and reissuing the query. |
2656 | 2666 | * STUB |