Merge "Clarify WikiRevision::downloadSource() and related code"
[lhc/web/wiklou.git] / includes / libs / rdbms / ChronologyProtector.php
index 88bc049..8615cfc 100644 (file)
@@ -176,8 +176,8 @@ class ChronologyProtector implements LoggerAwareInterface {
                }
 
                $masterName = $lb->getServerName( $lb->getWriterIndex() );
-               if ( $lb->getServerCount() > 1 ) {
-                       $pos = $lb->getMasterPos();
+               if ( $lb->hasStreamingReplicaServers() ) {
+                       $pos = $lb->getReplicaResumePos();
                        if ( $pos ) {
                                $this->logger->debug( __METHOD__ . ": LB for '$masterName' has pos $pos\n" );
                                $this->shutdownPositions[$masterName] = $pos;