From 7303df44a26066acf6a935e47fbbcf5facb13c86 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Thu, 19 Feb 2009 10:38:42 +0000 Subject: [PATCH] I have no idea why I'm doing this, but this has to be done, force order on *links,page reads --- includes/BacklinkCache.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/includes/BacklinkCache.php b/includes/BacklinkCache.php index b48a34a9ac..a7bcd8583a 100644 --- a/includes/BacklinkCache.php +++ b/includes/BacklinkCache.php @@ -67,10 +67,11 @@ class BacklinkCache { $conds[] = "$fromField <= " . intval( $endId ); } $res = $this->getDB()->select( - array( 'page', $table ), - array( 'page_namespace', 'page_title', 'page_id' ), + array( $table, 'page' ), + array( 'page_namespace', 'page_title', 'page_id'), $conds, - __METHOD__ ); + __METHOD__, + array('STRAIGHT_JOIN') ); $ta = TitleArray::newFromResult( $res ); wfProfileOut( __METHOD__ ); return $ta; @@ -79,10 +80,11 @@ class BacklinkCache { if ( !isset( $this->fullResultCache[$table] ) ) { wfDebug( __METHOD__.": from DB\n" ); $res = $this->getDB()->select( - array( 'page', $table ), + array( $table, 'page' ), array( 'page_namespace', 'page_title', 'page_id' ), $this->getConditions( $table ), - __METHOD__ ); + __METHOD__, + array('STRAIGHT_JOIN') ); $this->fullResultCache[$table] = $res; } $ta = TitleArray::newFromResult( $this->fullResultCache[$table] ); -- 2.20.1