Browse Source
Merge pull request #44470 from nextcloud/fix/compatibility-replica-splitting
pull/44465/head
Benjamin Gaussorgues
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
lib/private/DB/ConnectionFactory.php
|
|
|
@ -242,7 +242,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, |
|
|
|
|