From: Aaron Schulz Date: Thu, 15 Jan 2009 17:33:13 +0000 (+0000) Subject: Use getRawUserText function, since this is just there to trigger index usage for... X-Git-Tag: 1.31.0-rc.0~43404 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=8075446c1cee58ae2e777042b987fe7927d8f248;p=lhc%2Fweb%2Fwiklou.git Use getRawUserText function, since this is just there to trigger index usage for patrol link query --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index a44650f37a..8233451f48 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -172,15 +172,15 @@ CONTROL; // Look for an unpatrolled change corresponding to this diff $db = wfGetDB( DB_SLAVE ); $change = RecentChange::newFromConds( - array( - // Add redundant user,timestamp condition so we can use the existing index - 'rc_user_text' => $this->mNewRev->getUserText( Revision::FOR_THIS_USER ), - 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ), - 'rc_this_oldid' => $this->mNewid, - 'rc_last_oldid' => $this->mOldid, - 'rc_patrolled' => 0 - ), - __METHOD__ + array( + // Add redundant user,timestamp condition so we can use the existing index + 'rc_user_text' => $this->mNewRev->getRawUserText(), + 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ), + 'rc_this_oldid' => $this->mNewid, + 'rc_last_oldid' => $this->mOldid, + 'rc_patrolled' => 0 + ), + __METHOD__ ); if( $change instanceof RecentChange ) { $rcid = $change->mAttribs['rc_id'];