mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 18:33:46 -04:00
fix: Allow using replica config with split databases
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
5ca6249f42
commit
2fdb9184fa
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ class ConnectionFactory {
|
|||
$connectionParams['persistent'] = true;
|
||||
}
|
||||
|
||||
$replica = $this->config->getValue('dbreplica', []) ?: [$connectionParams];
|
||||
$replica = $this->config->getValue($configPrefix . 'dbreplica', $this->config->getValue('dbreplica', [])) ?: [$connectionParams];
|
||||
return array_merge($connectionParams, [
|
||||
'primary' => $connectionParams,
|
||||
'replica' => $replica,
|
||||
|
|
|
|||
Loading…
Reference in a new issue