From ef34cb719216c68eaa1079897b3f3be182fa31f5 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 25 Jun 2011 16:30:32 +0000 Subject: [PATCH] Hack followup to r90643 Comment out the call SHOW SLAVE STATUS for getting replag, leaving the use processlist Not sure when Tim/someone else will look at it, so easier to just hack the bad code for the moment, so people can develop/test etc --- includes/db/DatabaseMysql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabaseMysql.php b/includes/db/DatabaseMysql.php index 90d2dc9f06..d5e8d19f6b 100644 --- a/includes/db/DatabaseMysql.php +++ b/includes/db/DatabaseMysql.php @@ -365,9 +365,9 @@ class DatabaseMysql extends DatabaseBase { return $this->mFakeSlaveLag; } - if ( version_compare( $this->getServerVersion(), '4.1.9', '>=' ) ) { + /*if ( version_compare( $this->getServerVersion(), '4.1.9', '>=' ) ) { return $this->getLagFromSlaveStatus(); - } else { + } else */{ return $this->getLagFromProcesslist(); } } -- 2.20.1