Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -707,6 +707,15 @@ |
708 | 708 | } |
709 | 709 | |
710 | 710 | /** |
| 711 | + * Determines if the last failure was due to a lock timeout |
| 712 | + * |
| 713 | + * @return bool |
| 714 | + */ |
| 715 | + function wasLockTimeout() { |
| 716 | + return $this->lastErrno() == 1205; |
| 717 | + } |
| 718 | + |
| 719 | + /** |
711 | 720 | * Determines if the last query error was something that should be dealt |
712 | 721 | * with by pinging the connection and reissuing the query |
713 | 722 | * |
Index: trunk/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 |