rdbms: add replica server counting methods to ILoadBalancer
[lhc/web/wiklou.git] / includes / libs / rdbms / ChronologyProtector.php
index 88bc049..24b5402 100644 (file)
@@ -176,7 +176,7 @@ class ChronologyProtector implements LoggerAwareInterface {
                }
 
                $masterName = $lb->getServerName( $lb->getWriterIndex() );
-               if ( $lb->getServerCount() > 1 ) {
+               if ( $lb->hasStreamingReplicaServers() ) {
                        $pos = $lb->getMasterPos();
                        if ( $pos ) {
                                $this->logger->debug( __METHOD__ . ": LB for '$masterName' has pos $pos\n" );