Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -368,7 +368,7 @@ |
369 | 369 | * versions of MySQL, it uses SHOW PROCESSLIST, which requires the PROCESS |
370 | 370 | * privilege. |
371 | 371 | * |
372 | | - * @result int |
| 372 | + * @return int |
373 | 373 | */ |
374 | 374 | function getLag() { |
375 | 375 | if ( !is_null( $this->mFakeSlaveLag ) ) { |
— | — | @@ -383,6 +383,9 @@ |
384 | 384 | } |
385 | 385 | } |
386 | 386 | |
| 387 | + /** |
| 388 | + * @return bool|int |
| 389 | + */ |
387 | 390 | function getLagFromSlaveStatus() { |
388 | 391 | $res = $this->query( 'SHOW SLAVE STATUS', __METHOD__ ); |
389 | 392 | if ( !$res ) { |
— | — | @@ -399,6 +402,9 @@ |
400 | 403 | } |
401 | 404 | } |
402 | 405 | |
| 406 | + /** |
| 407 | + * @return bool|int |
| 408 | + */ |
403 | 409 | function getLagFromProcesslist() { |
404 | 410 | $res = $this->query( 'SHOW PROCESSLIST', __METHOD__ ); |
405 | 411 | if( !$res ) { |