Merge "rdbms: allow synchronous=OFF for sqlite"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 17 Jun 2019 01:53:48 +0000 (01:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 17 Jun 2019 01:53:48 +0000 (01:53 +0000)
includes/libs/rdbms/database/DatabaseSqlite.php

index 3722ef4..0280362 100644 (file)
@@ -217,7 +217,7 @@ class DatabaseSqlite extends Database {
                        $this->query( 'PRAGMA case_sensitive_like = 1' );
 
                        $sync = $this->connectionVariables['synchronous'] ?? null;
-                       if ( in_array( $sync, [ 'EXTRA', 'FULL', 'NORMAL' ], true ) ) {
+                       if ( in_array( $sync, [ 'EXTRA', 'FULL', 'NORMAL', 'OFF' ], true ) ) {
                                $this->query( "PRAGMA synchronous = $sync" );
                        }