From: Sam Reed Date: Sun, 14 Aug 2011 19:49:07 +0000 (+0000) Subject: Add/update documentation X-Git-Tag: 1.31.0-rc.0~28271 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=dd2c01af830486d02be99af24137238335b42ae3;p=lhc%2Fweb%2Fwiklou.git Add/update documentation --- diff --git a/includes/db/DatabaseMysql.php b/includes/db/DatabaseMysql.php index 060ec058a4..53adea11e0 100644 --- a/includes/db/DatabaseMysql.php +++ b/includes/db/DatabaseMysql.php @@ -368,7 +368,7 @@ class DatabaseMysql extends DatabaseBase { * versions of MySQL, it uses SHOW PROCESSLIST, which requires the PROCESS * privilege. * - * @result int + * @return int */ function getLag() { if ( !is_null( $this->mFakeSlaveLag ) ) { @@ -383,6 +383,9 @@ class DatabaseMysql extends DatabaseBase { } } + /** + * @return bool|int + */ function getLagFromSlaveStatus() { $res = $this->query( 'SHOW SLAVE STATUS', __METHOD__ ); if ( !$res ) { @@ -399,6 +402,9 @@ class DatabaseMysql extends DatabaseBase { } } + /** + * @return bool|int + */ function getLagFromProcesslist() { $res = $this->query( 'SHOW PROCESSLIST', __METHOD__ ); if( !$res ) {