Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/243071

Change subject: Cleaned up getLagTimes() docs
......................................................................

Cleaned up getLagTimes() docs

Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1
---
M includes/db/loadbalancer/LoadBalancer.php
M includes/db/loadbalancer/LoadMonitor.php
2 files changed, 8 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/71/243071/1

diff --git a/includes/db/loadbalancer/LoadBalancer.php 
b/includes/db/loadbalancer/LoadBalancer.php
index 3fcd349..a0ef753 100644
--- a/includes/db/loadbalancer/LoadBalancer.php
+++ b/includes/db/loadbalancer/LoadBalancer.php
@@ -1221,12 +1221,14 @@
        }
 
        /**
-        * Get lag time for each server
+        * Get an estimate of replication lag (in seconds) for each server
         *
         * Results are cached for a short time in memcached/process cache
         *
+        * Values may be "false" if replication is too broken to estimate
+        *
         * @param string|bool $wiki
-        * @return int[] Map of (server index => seconds)
+        * @return int[] Map of (server index => float|int|bool)
         */
        public function getLagTimes( $wiki = false ) {
                if ( $this->getServerCount() <= 1 ) {
diff --git a/includes/db/loadbalancer/LoadMonitor.php 
b/includes/db/loadbalancer/LoadMonitor.php
index 03ce787..438e4fc 100644
--- a/includes/db/loadbalancer/LoadMonitor.php
+++ b/includes/db/loadbalancer/LoadMonitor.php
@@ -43,12 +43,14 @@
        public function scaleLoads( &$loads, $group = false, $wiki = false );
 
        /**
-        * Return an estimate of replication lag for each server
+        * Get an estimate of replication lag (in seconds) for each server
+        *
+        * Values may be "false" if replication is too broken to estimate
         *
         * @param array $serverIndexes
         * @param string $wiki
         *
-        * @return array Map of (server index => seconds)
+        * @return array Map of (server index => float|int|bool)
         */
        public function getLagTimes( $serverIndexes, $wiki );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

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

Reply via email to