summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-11-11 09:58:05 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-25 21:25:30 -0600
commit3d0005d001627e3905a314b4e6d264f98737cafa (patch)
treef8e8ec0e0631bda120c9f954d97a5c8c91644a6b /lib
parentef57c03dd22115ddee75c14c3c5073d924cca23a (diff)
downloadnextcloud-server-3d0005d001627e3905a314b4e6d264f98737cafa.tar.gz
nextcloud-server-3d0005d001627e3905a314b4e6d264f98737cafa.zip
fix constant
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/RedisFactory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/RedisFactory.php b/lib/private/RedisFactory.php
index e254d36aa06..810a0585ebf 100644
--- a/lib/private/RedisFactory.php
+++ b/lib/private/RedisFactory.php
@@ -49,7 +49,7 @@ class RedisFactory {
$this->instance = new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout);
if (isset($config['failover_mode'])) {
- $this->instance->setOption(\RedisCluster::OPT_FAILOVER, $config['failover_mode']);
+ $this->instance->setOption(\RedisCluster::OPT_SLAVE_FAILOVER, $config['failover_mode']);
}
} else {