Follow up r71805: Drop PoolWork from the configuration key, and update DefaultSetting...
authorPlatonides <platonides@users.mediawiki.org>
Wed, 15 Sep 2010 19:49:40 +0000 (19:49 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 15 Sep 2010 19:49:40 +0000 (19:49 +0000)
includes/Article.php
includes/DefaultSettings.php
includes/PoolCounter.php

index 0999bdb..753e157 100644 (file)
@@ -4455,7 +4455,6 @@ class Article {
         *
         * @param $parserOutput mixed ParserOptions object, or boolean false
         **/
-
        protected function doCascadeProtectionUpdates( $parserOutput ) {
                if ( !$this->isCurrent() || wfReadOnly() || !$this->mTitle->areRestrictionsCascading() ) {
                        return;
@@ -4623,7 +4622,7 @@ class PoolWorkArticleView extends PoolCounterWork {
        private $mArticle;
        
        function __construct( $article, $key, $useParserCache, $parserOptions ) {
-               parent::__construct( __CLASS__, $key );
+               parent::__construct( 'ArticleView', $key );
                $this->mArticle = $article;
                $this->cacheable = $useParserCache;
                $this->parserOptions = $parserOptions;
index 299d73c..02fda8a 100644 (file)
@@ -5070,8 +5070,11 @@ $wgRedirectOnLogin = null;
  * The remaining elements are passed through to the class as constructor
  * parameters. Example:
  *
- *   $wgPoolCounterConf = array( 'Article::view' => array(
+ *   $wgPoolCounterConf = array( 'ArticleView' => array(
  *     'class' => 'PoolCounter_Client',
+ *     'timeout' => 15, // wait timeout in seconds
+ *     'workers' => 5, // maximum number of active threads in each pool
+ *     'maxqueue' => 50, // maximum number of total threads in each pool
  *     ... any extension-specific options...
  *   );
  */
index 825ae34..8b6e18a 100644 (file)
@@ -9,8 +9,10 @@
  * of the cpu of the pool. This is also known as 'Michael Jackson effect'.
  *  The PoolCounter provides semaphore semantics for restricting the number
  * of workers that may be concurrently performing such single task.
+ *
+ *  By default PoolCounter_Stub is used, which provides no locking. You 
+ * can get a useful one in the PoolCounter extension.
  */
-
 abstract class PoolCounter {
        
        /* Return codes */