profiling
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 24 Feb 2006 07:50:23 +0000 (07:50 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 24 Feb 2006 07:50:23 +0000 (07:50 +0000)
includes/LinkBatch.php

index fed9359..43282ab 100644 (file)
@@ -60,7 +60,7 @@ class LinkBatch {
         * Return an array mapping PDBK to ID
         */
        function executeInto( &$cache ) {
-               $fname = 'LinkBatch::execute';
+               $fname = 'LinkBatch::executeInto';
                wfProfileIn( $fname );
                // Do query
                $res = $this->doQuery();
@@ -97,7 +97,7 @@ class LinkBatch {
         * Perform the existence test query, return a ResultWrapper with page_id fields
         */
        function doQuery() {
-               $fname = 'LinkBatch::execute';
+               $fname = 'LinkBatch::doQuery';
                $namespaces = array();
 
                if ( !count( $this->data ) ) {
@@ -111,6 +111,7 @@ class LinkBatch {
                $page = $dbr->tableName( 'page' );
                $set = $this->constructSet( 'page', $dbr );
                if ( $set === false ) {
+                       wfProfileOut( $fname );
                        return false;
                }
                $sql = "SELECT page_id, page_namespace, page_title FROM $page WHERE $set";