* Return an array mapping PDBK to ID
*/
function executeInto( &$cache ) {
- $fname = 'LinkBatch::execute';
+ $fname = 'LinkBatch::executeInto';
wfProfileIn( $fname );
// Do query
$res = $this->doQuery();
* 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 ) ) {
$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";