r45774 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45773‎ | r45774 | r45775 >
Date:17:33, 15 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Use getRawUserText function, since this is just there to trigger index usage for patrol link query
Modified paths:
  • /trunk/phase3/includes/diff/DifferenceEngine.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/diff/DifferenceEngine.php
@@ -172,15 +172,15 @@
173173 // Look for an unpatrolled change corresponding to this diff
174174 $db = wfGetDB( DB_SLAVE );
175175 $change = RecentChange::newFromConds(
176 - array(
177 - // Add redundant user,timestamp condition so we can use the existing index
178 - 'rc_user_text' => $this->mNewRev->getUserText( Revision::FOR_THIS_USER ),
179 - 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ),
180 - 'rc_this_oldid' => $this->mNewid,
181 - 'rc_last_oldid' => $this->mOldid,
182 - 'rc_patrolled' => 0
183 - ),
184 - __METHOD__
 176+ array(
 177+ // Add redundant user,timestamp condition so we can use the existing index
 178+ 'rc_user_text' => $this->mNewRev->getRawUserText(),
 179+ 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ),
 180+ 'rc_this_oldid' => $this->mNewid,
 181+ 'rc_last_oldid' => $this->mOldid,
 182+ 'rc_patrolled' => 0
 183+ ),
 184+ __METHOD__
185185 );
186186 if( $change instanceof RecentChange ) {
187187 $rcid = $change->mAttribs['rc_id'];

Status & tagging log