From 0c1fb32f6e7543e7ca6559b29f21e288c69043bf Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 24 Feb 2006 07:50:23 +0000 Subject: [PATCH] profiling --- includes/LinkBatch.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/LinkBatch.php b/includes/LinkBatch.php index fed9359793..43282abe00 100644 --- a/includes/LinkBatch.php +++ b/includes/LinkBatch.php @@ -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"; -- 2.20.1