* The FORCE INDEX statements are not needed
Change-Id: Ia6f386140e88ad01fc35a10b00dbcb0d1eb934ea
*
* @param array $conds Array of conditions
* @param mixed $fname Override the method name in profiling/logs
*
* @param array $conds Array of conditions
* @param mixed $fname Override the method name in profiling/logs
- * @param array $options Query options
* @return RecentChange|null
*/
* @return RecentChange|null
*/
- public static function newFromConds( $conds, $fname = __METHOD__, $options = array() ) {
+ public static function newFromConds( $conds, $fname = __METHOD__ ) {
$dbr = wfGetDB( DB_SLAVE );
$dbr = wfGetDB( DB_SLAVE );
- $row = $dbr->selectRow( 'recentchanges', self::selectFields(), $conds, $fname, $options );
+ $row = $dbr->selectRow( 'recentchanges', self::selectFields(), $conds, $fname );
if ( $row !== false ) {
return self::newFromRow( $row );
} else {
if ( $row !== false ) {
return self::newFromRow( $row );
} else {
'rc_this_oldid' => $this->mNewid,
'rc_patrolled' => 0
),
'rc_this_oldid' => $this->mNewid,
'rc_patrolled' => 0
),
- __METHOD__,
- array( 'USE INDEX' => 'rc_timestamp' )
);
if ( $change && !$change->getPerformer()->equals( $user ) ) {
);
if ( $change && !$change->getPerformer()->equals( $user ) ) {
'rc_namespace' => $this->getTitle()->getNamespace(),
'rc_cur_id' => $this->getTitle()->getArticleID()
),
'rc_namespace' => $this->getTitle()->getNamespace(),
'rc_cur_id' => $this->getTitle()->getArticleID()
),
- __METHOD__,
- array( 'USE INDEX' => 'new_name_timestamp' )
);
} else {
// Cache the information we gathered above in case we can't patrol
);
} else {
// Cache the information we gathered above in case we can't patrol