Skip to content

Commit 98191e1

Browse files
authored
Update DbConfig.php
1 parent 658164e commit 98191e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Config/Database/DbConfig.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class DbConfig implements ConfigInterface
3535
const KEY_ENGINE = 'engine';
3636
const KEY_INIT_STATEMENTS = 'initStatements';
3737
const KEY_ACTIVE = 'active';
38+
const KEY_SYNCHRONOUS_REPLICATION = 'synchronous_replication';
3839

3940
/**
4041
* Names of connections
@@ -195,6 +196,7 @@ private function collectEnvConfig(array $customDbConfig): array
195196
}
196197
$mageConnectionConfig = $this->convertToMageFormat($slaveConnectionData, true);
197198
$config[self::KEY_SLAVE_CONNECTION][$mageConnectionName] = $mageConnectionConfig;
199+
$config[self::KEY_SLAVE_CONNECTION][$mageConnectionName][self::KEY_SYNCHRONOUS_REPLICATION] = true;
198200
}
199201
return $config;
200202
}

0 commit comments

Comments
 (0)