Merge "SiteStats::jobs fix when there is a single job"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 24 Jul 2017 20:40:53 +0000 (20:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 24 Jul 2017 20:40:53 +0000 (20:40 +0000)
1  2 
includes/SiteStats.php

diff --combined includes/SiteStats.php
@@@ -222,13 -222,6 +222,6 @@@ class SiteStats 
                        } catch ( JobQueueError $e ) {
                                self::$jobs = 0;
                        }
-                       /**
-                        * Zero rows still do single row read for row that doesn't exist,
-                        * but people are annoyed by that
-                        */
-                       if ( self::$jobs == 1 ) {
-                               self::$jobs = 0;
-                       }
                }
                return self::$jobs;
        }
@@@ -296,6 -289,7 +289,6 @@@ class SiteStatsInit 
        private $mUsers = null, $mFiles = null;
  
        /**
 -       * Constructor
         * @param bool|IDatabase $database
         * - boolean: Whether to use the master DB
         * - IDatabase: Database connection to use