X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Floadbalancer%2FILoadBalancer.php;h=22281c17ed35471b2125eae1c24044ddfde33688;hb=b9a67d4710b117504f4c65d2c2071791909d6c5e;hp=a2202b6a090a01b2a1fde55a9237d0d2fea8fea7;hpb=89b7bd3e93aedeb1f4af74481b72d19d1a9398c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/loadbalancer/ILoadBalancer.php b/includes/libs/rdbms/loadbalancer/ILoadBalancer.php index a2202b6a09..22281c17ed 100644 --- a/includes/libs/rdbms/loadbalancer/ILoadBalancer.php +++ b/includes/libs/rdbms/loadbalancer/ILoadBalancer.php @@ -604,22 +604,6 @@ interface ILoadBalancer { */ public function getLagTimes( $domain = false ); - /** - * Get the lag in seconds for a given connection, or zero if this load - * balancer does not have replication enabled. - * - * This should be used in preference to Database::getLag() in cases where - * replication may not be in use, since there is no way to determine if - * replication is in use at the connection level without running - * potentially restricted queries such as SHOW SLAVE STATUS. Using this - * function instead of Database::getLag() avoids a fatal error in this - * case on many installations. - * - * @param IDatabase $conn - * @return int|bool Returns false on error - */ - public function safeGetLag( IDatabase $conn ); - /** * Wait for a replica DB to reach a specified master position *