Fix comment in BacklinkCache::partition()
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 26 Jun 2011 11:48:55 +0000 (11:48 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 26 Jun 2011 11:48:55 +0000 (11:48 +0000)
+ a typo

Per cr on r84254

includes/BacklinkCache.php

index 7de7fae..e44e19d 100644 (file)
@@ -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 );