Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2015-06-18 18:09:19 +0300
committermichael-grunder <michael.grunder@gmail.com>2015-06-18 18:09:19 +0300
commitece6c1d226ebf851bf247ca1b386d964387d21ef (patch)
tree66d8fc9e02e8f9e331b41e4cf569c59f960263d7 /cluster_library.c
parent81cb2bcc2fd47f9976adc41d73d180cab80b20c0 (diff)
Failover fix for cluster sessions and srand migration
* We weren't setting the failover member even when specified in the context of a Redis Cluster session. * Moved random number seeding to MINIT so it only ever happens once
Diffstat (limited to 'cluster_library.c')
-rw-r--r--cluster_library.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cluster_library.c b/cluster_library.c
index b6a760e3..6275080e 100644
--- a/cluster_library.c
+++ b/cluster_library.c
@@ -812,6 +812,7 @@ PHP_REDIS_API redisCluster *cluster_create(double timeout, double read_timeout,
c->clusterdown = 0;
c->timeout = timeout;
c->read_timeout = read_timeout;
+ c->failover = failover;
/* Set up our waitms based on timeout */
c->waitms = (long)(1000 * timeout);