Normalize and lower the default DB lag wait timeout
[lhc/web/wiklou.git] / includes / libs / rdbms / lbfactory / LBFactory.php
index 32886e2..bc428ec 100644 (file)
@@ -313,7 +313,7 @@ abstract class LBFactory implements ILBFactory {
                $opts += [
                        'domain' => false,
                        'cluster' => false,
-                       'timeout' => 60,
+                       'timeout' => $this->cliMode ? 60 : 10,
                        'ifWritesSince' => null
                ];