From 2fdb9184fa3ca6852c9bd5223fbb8df331bab1eb Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Tue, 26 Mar 2024 09:25:44 +0100 Subject: fix: Allow using replica config with split databases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/private/DB/ConnectionFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php index e868f18ec34..ac87bd810b8 100644 --- a/lib/private/DB/ConnectionFactory.php +++ b/lib/private/DB/ConnectionFactory.php @@ -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, -- cgit v1.2.3