Actually declare the base LoadMonior::clearCaches
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 29 Sep 2015 08:22:02 +0000 (01:22 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 29 Sep 2015 08:25:30 +0000 (08:25 +0000)
This fixes IDEA errors in LoadBalancer::clearLagTimeCache

Change-Id: Ibd863ef6bc670a29f65821e3f3cd9d721a652b9a

includes/db/loadbalancer/LoadMonitor.php

index 4975ea1..03ce787 100644 (file)
@@ -51,6 +51,12 @@ interface LoadMonitor {
         * @return array Map of (server index => seconds)
         */
        public function getLagTimes( $serverIndexes, $wiki );
+
+       /**
+        * Clear any process and persistent cache of lag times
+        * @since 1.26
+        */
+       public function clearCaches();
 }
 
 class LoadMonitorNull implements LoadMonitor {
@@ -63,4 +69,8 @@ class LoadMonitorNull implements LoadMonitor {
        public function getLagTimes( $serverIndexes, $wiki ) {
                return array_fill_keys( $serverIndexes, 0 );
        }
+
+       public function clearCaches() {
+
+       }
 }