Add/update documentation
authorSam Reed <reedy@users.mediawiki.org>
Sun, 14 Aug 2011 19:49:07 +0000 (19:49 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 14 Aug 2011 19:49:07 +0000 (19:49 +0000)
includes/db/DatabaseMysql.php

index 060ec05..53adea1 100644 (file)
@@ -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 ) {