Skip to content

Commit

Permalink
Add read committed isolation level for drupal 10 (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
kierenevans authored May 16, 2023
1 parent 9358b91 commit 6822cdd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ $databases['default']['default'] = array (
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
{% if version_compare(@('drupal.major_version'), '10', '>=') %}
'init_commands' => [
'isolation_level' => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
],
{% endif %}
);
$settings['trusted_host_patterns'][] = '^' . preg_quote(getenv('APP_HOST')) . '$';
Expand Down

0 comments on commit 6822cdd

Please sign in to comment.