Change 1.26 to 1.27, mostly in doc comments
[lhc/web/wiklou.git] / includes / db / loadbalancer / LoadMonitor.php
index 4975ea1..d5cd017 100644 (file)
@@ -43,14 +43,22 @@ interface LoadMonitor {
        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 );
+
+       /**
+        * Clear any process and persistent cache of lag times
+        * @since 1.27
+        */
+       public function clearCaches();
 }
 
 class LoadMonitorNull implements LoadMonitor {
@@ -63,4 +71,8 @@ class LoadMonitorNull implements LoadMonitor {
        public function getLagTimes( $serverIndexes, $wiki ) {
                return array_fill_keys( $serverIndexes, 0 );
        }
+
+       public function clearCaches() {
+
+       }
 }