diff options
Diffstat (limited to 'includes/api/ApiQueryLogEvents.php')
-rw-r--r-- | includes/api/ApiQueryLogEvents.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index f3fc4fae1234..6a929689c68b 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -245,7 +245,8 @@ class ApiQueryLogEvents extends ApiQueryBase { // `logging` and filesorting is somehow better than querying $limit+1 rows from `logging`. // Tell it not to reorder the query. But not when `letag` was used, as it seems as likely // to be harmed as helped in that case. - if ( $params['tag'] === null ) { + // If "user" was specified, it's obviously correct to query actor first (T282122) + if ( $params['tag'] === null && $user === null ) { $this->addOption( 'STRAIGHT_JOIN' ); } |