We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658164e commit 98191e1Copy full SHA for 98191e1
src/Config/Database/DbConfig.php
@@ -35,6 +35,7 @@ class DbConfig implements ConfigInterface
35
const KEY_ENGINE = 'engine';
36
const KEY_INIT_STATEMENTS = 'initStatements';
37
const KEY_ACTIVE = 'active';
38
+ const KEY_SYNCHRONOUS_REPLICATION = 'synchronous_replication';
39
40
/**
41
* Names of connections
@@ -195,6 +196,7 @@ private function collectEnvConfig(array $customDbConfig): array
195
196
}
197
$mageConnectionConfig = $this->convertToMageFormat($slaveConnectionData, true);
198
$config[self::KEY_SLAVE_CONNECTION][$mageConnectionName] = $mageConnectionConfig;
199
+ $config[self::KEY_SLAVE_CONNECTION][$mageConnectionName][self::KEY_SYNCHRONOUS_REPLICATION] = true;
200
201
return $config;
202
0 commit comments