From ae152b63bf1f3105c2472e4190a8f0b003046387 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 13 May 2008 19:58:12 +0000 Subject: [PATCH] Actually specify page_id=rev_page to avoid cartesian join bringing the site down again --- includes/api/ApiQueryRevisions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 80cfb45d9e..fb6ed480d1 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -165,6 +165,7 @@ class ApiQueryRevisions extends ApiQueryBase { // Get all revision IDs $this->addWhereFld('rev_id', array_keys($pageSet->getRevisionIDs())); + $this->addWhere('page_id=rev_page'); // assumption testing -- we should never get more then $revCount rows. $limit = $revCount; -- 2.20.1