Change-Id: Icc11619136b6ed10f507e25cd0798da975af4ad1
}
/**
- * 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 ) {
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 );