From e42fed1b8fd1c4de5dbfc0f24d308e7ad1b2639d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 26 Jun 2011 11:48:55 +0000 Subject: [PATCH] Fix comment in BacklinkCache::partition() + a typo Per cr on r84254 --- includes/BacklinkCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/BacklinkCache.php b/includes/BacklinkCache.php index 7de7faed0c..e44e19dafb 100644 --- a/includes/BacklinkCache.php +++ b/includes/BacklinkCache.php @@ -255,7 +255,7 @@ class BacklinkCache { /** * Partition the backlinks into batches. - * Returns an array giving the start and end of each range. The firsti + * Returns an array giving the start and end of each range. The first * batch has a start of false, and the last batch has an end of false. * * @param $table String: the links table name @@ -264,7 +264,7 @@ class BacklinkCache { */ public function partition( $table, $batchSize ) { - // 1) try this per process cache first + // 1) try partition cache ... if ( isset( $this->partitionCache[$table][$batchSize] ) ) { wfDebug( __METHOD__ . ": got from partition cache\n" ); @@ -274,7 +274,7 @@ class BacklinkCache { $this->partitionCache[$table][$batchSize] = false; $cacheEntry =& $this->partitionCache[$table][$batchSize]; - // 2) try full result cache + // 2) ... then try full result cache ... if ( isset( $this->fullResultCache[$table] ) ) { $cacheEntry = $this->partitionResult( $this->fullResultCache[$table], $batchSize ); -- 2.20.1