Index: branches/FileBackend/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -703,6 +703,16 @@ |
704 | 704 | } |
705 | 705 | |
706 | 706 | /** |
| 707 | + * Determines how long the server has been up |
| 708 | + * |
| 709 | + * @return int |
| 710 | + */ |
| 711 | + function getServerUptime() { |
| 712 | + $vars = $this->getMysqlStatus( 'Uptime' ); |
| 713 | + return (int)$vars['Uptime']; |
| 714 | + } |
| 715 | + |
| 716 | + /** |
707 | 717 | * Determines if the last failure was due to a deadlock |
708 | 718 | * |
709 | 719 | * @return bool |
Index: branches/FileBackend/phase3/includes/db/Database.php |
— | — | @@ -2640,6 +2640,16 @@ |
2641 | 2641 | } |
2642 | 2642 | |
2643 | 2643 | /** |
| 2644 | + * Determines how long the server has been up |
| 2645 | + * STUB |
| 2646 | + * |
| 2647 | + * @return int |
| 2648 | + */ |
| 2649 | + function getServerUptime() { |
| 2650 | + return 0; |
| 2651 | + } |
| 2652 | + |
| 2653 | + /** |
2644 | 2654 | * Determines if the last failure was due to a deadlock |
2645 | 2655 | * STUB |
2646 | 2656 | * |