Skip to content

Commit

Permalink
Update DbConfig.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vzabaznov authored Aug 9, 2022
1 parent 658164e commit 98191e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Config/Database/DbConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class DbConfig implements ConfigInterface
const KEY_ENGINE = 'engine';
const KEY_INIT_STATEMENTS = 'initStatements';
const KEY_ACTIVE = 'active';
const KEY_SYNCHRONOUS_REPLICATION = 'synchronous_replication';

/**
* Names of connections
Expand Down Expand Up @@ -195,6 +196,7 @@ private function collectEnvConfig(array $customDbConfig): array
}
$mageConnectionConfig = $this->convertToMageFormat($slaveConnectionData, true);
$config[self::KEY_SLAVE_CONNECTION][$mageConnectionName] = $mageConnectionConfig;
$config[self::KEY_SLAVE_CONNECTION][$mageConnectionName][self::KEY_SYNCHRONOUS_REPLICATION] = true;
}
return $config;
}
Expand Down

0 comments on commit 98191e1

Please sign in to comment.