r94474 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94473‎ | r94474 | r94475 >
Date:19:49, 14 August 2011
Author:reedy
Status:ok
Tags:
Comment:
Add/update documentation
Modified paths:
  • /trunk/phase3/includes/db/DatabaseMysql.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabaseMysql.php
@@ -368,7 +368,7 @@
369369 * versions of MySQL, it uses SHOW PROCESSLIST, which requires the PROCESS
370370 * privilege.
371371 *
372 - * @result int
 372+ * @return int
373373 */
374374 function getLag() {
375375 if ( !is_null( $this->mFakeSlaveLag ) ) {
@@ -383,6 +383,9 @@
384384 }
385385 }
386386
 387+ /**
 388+ * @return bool|int
 389+ */
387390 function getLagFromSlaveStatus() {
388391 $res = $this->query( 'SHOW SLAVE STATUS', __METHOD__ );
389392 if ( !$res ) {
@@ -399,6 +402,9 @@
400403 }
401404 }
402405
 406+ /**
 407+ * @return bool|int
 408+ */
403409 function getLagFromProcesslist() {
404410 $res = $this->query( 'SHOW PROCESSLIST', __METHOD__ );
405411 if( !$res ) {

Status & tagging log