dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a42c19
)
Add/update documentation
author
Sam Reed
<reedy@users.mediawiki.org>
Sun, 14 Aug 2011 19:49:07 +0000
(19:49 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Sun, 14 Aug 2011 19:49:07 +0000
(19:49 +0000)
includes/db/DatabaseMysql.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseMysql.php
b/includes/db/DatabaseMysql.php
index
060ec05
..
53adea1
100644
(file)
--- 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.
*
- * @re
sult
int
+ * @re
turn
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 ) {