jenkins-bot has submitted this change and it was merged.

Change subject: Use vslow query group for stats generation
......................................................................


Use vslow query group for stats generation

Change-Id: I5922ac913a36100dac7ef9b32a516cd2c6ca5273
---
M backend/FlaggedRevsStats.php
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  Springle: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/backend/FlaggedRevsStats.php b/backend/FlaggedRevsStats.php
index a2e7476..e9eb09d 100644
--- a/backend/FlaggedRevsStats.php
+++ b/backend/FlaggedRevsStats.php
@@ -194,7 +194,7 @@
        private static function getPerNamespaceTotals() {
                $ns_total = $ns_reviewed = $ns_synced = array();
                // Get total, reviewed, and synced page count for each namespace
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE, 'vslow' );
                $res = $dbr->select( array( 'page', 'flaggedpages' ),
                        array( 'page_namespace',
                                'COUNT(*) AS total',
@@ -220,7 +220,7 @@
        }
 
        private static function getMeanPendingEditTime() {
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE, 'vslow' );
                $nowUnix = wfTimestamp( TS_UNIX ); // current time in UNIX TS
                $unixTimeCall = self::dbUnixTime( $dbr, 'fp_pending_since' );
                return (int)$dbr->selectField(
@@ -257,7 +257,7 @@
                $rPerTable = array(); // review wait percentiles
                # Only go so far back...otherwise we will get garbage values 
due to
                # the fact that FlaggedRevs wasn't enabled until after a while.
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE, 'vslow' );
                $installedUnix = (int)$dbr->selectField( 'logging',
                        self::dbUnixTime( $dbr, 'MIN(log_timestamp)' ),
                        array('log_type' => 'review')

-- 
To view, visit https://gerrit.wikimedia.org/r/203514
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5922ac913a36100dac7ef9b32a516cd2c6ca5273
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Springle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to