Made mergeActiveUsers use "recentchanges" query group
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 8 Apr 2015 00:31:11 +0000 (17:31 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 8 Apr 2015 00:31:11 +0000 (17:31 -0700)
Change-Id: I9b91fe5d81f7315d531c48530cfbcf779f3adec2

includes/specials/SpecialActiveusers.php

index a031dad..2c00175 100644 (file)
@@ -302,7 +302,7 @@ class SpecialActiveUsers extends SpecialPage {
         * @return int How many seconds old the cache is
         */
        public static function mergeActiveUsers( $period, $days ) {
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE, 'recentchanges' );
                $cTime = $dbr->selectField( 'querycache_info',
                        'qci_timestamp',
                        array( 'qci_type' => 'activeusers' )