diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-03-26 20:27:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 20:27:14 +0100 |
commit | b304dc78f889cd40a844d89db7b741902aea5a5f (patch) | |
tree | f3855520b775922e563b44b7ad469a5ca600716d /lib | |
parent | 5a6e6a10abeb51fda15752fbef1fee561247cb40 (diff) | |
parent | 2fdb9184fa3ca6852c9bd5223fbb8df331bab1eb (diff) | |
download | nextcloud-server-b304dc78f889cd40a844d89db7b741902aea5a5f.tar.gz nextcloud-server-b304dc78f889cd40a844d89db7b741902aea5a5f.zip |
Merge pull request #44470 from nextcloud/fix/compatibility-replica-splitting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/ConnectionFactory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php index c7a558e5879..e34bd136d6d 100644 --- a/lib/private/DB/ConnectionFactory.php +++ b/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, |