Merge "Renamed "slave" internal LB/DB info field to "replica""
[lhc/web/wiklou.git] / includes / db / loadbalancer / LoadBalancer.php
index 7cdd490..e009256 100644 (file)
@@ -1687,7 +1687,7 @@ class LoadBalancer {
         * @since 1.27
         */
        public function safeWaitForMasterPos( IDatabase $conn, $pos = false, $timeout = 10 ) {
-               if ( $this->getServerCount() == 1 || !$conn->getLBInfo( 'slave' ) ) {
+               if ( $this->getServerCount() == 1 || !$conn->getLBInfo( 'replica' ) ) {
                        return true; // server is not a replica DB
                }