Log function name for SHOW PROCESSLIST query in getLag().
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 30 Apr 2009 05:23:25 +0000 (05:23 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 30 Apr 2009 05:23:25 +0000 (05:23 +0000)
includes/db/Database.php

index 19abd99..7f64862 100644 (file)
@@ -2135,7 +2135,7 @@ class Database {
                        wfDebug( "getLag: fake slave lagged {$this->mFakeSlaveLag} seconds\n" );
                        return $this->mFakeSlaveLag;
                }
-               $res = $this->query( 'SHOW PROCESSLIST' );
+               $res = $this->query( 'SHOW PROCESSLIST', __METHOD__ );
                # Find slave SQL thread
                while ( $row = $this->fetchObject( $res ) ) {
                        /* This should work for most situations - when default db