mirror of https://github.com/nextcloud/server
Merge pull request #44470 from nextcloud/fix/compatibility-replica-splitting
This commit is contained in:
commit
b304dc78f8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue