Renamed load balancer replica DB functions for consistency
[lhc/web/wiklou.git] / includes / db / loadbalancer / LBFactory.php
index 9f8f919..226ac08 100644 (file)
@@ -357,18 +357,27 @@ abstract class LBFactory implements DestructibleService {
 
        /**
         * Detemine if any lagged replica DB connection was used
-        * @since 1.27
         * @return bool
+        * @since 1.28
         */
-       public function laggedSlaveUsed() {
+       public function laggedReplicaUsed() {
                $ret = false;
                $this->forEachLB( function ( LoadBalancer $lb ) use ( &$ret ) {
-                       $ret = $ret || $lb->laggedSlaveUsed();
+                       $ret = $ret || $lb->laggedReplicaUsed();
                } );
 
                return $ret;
        }
 
+       /**
+        * @return bool
+        * @since 1.27
+        * @deprecated Since 1.28; use laggedReplicaUsed()
+        */
+       public function laggedSlaveUsed() {
+               return $this->laggedReplicaUsed();
+       }
+
        /**
         * Determine if any master connection has pending/written changes from this request
         * @return bool