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:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-08-21 16:50:53 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-08-22 09:02:31 +0300
commit1d997873750e5fdef1fe368b5296f4427dab3ea0 (patch)
tree73aaa6b05361a35c30b7a85d38dade44f320d678 /cluster_library.h
parent399edf44f90f5c0b7be4f3bdefb6b402eda5f0af (diff)
Change connect/reconnect logic
Persistant connections can be closed via close method. Connection marked as failed only after reconnection attempts.
Diffstat (limited to 'cluster_library.h')
-rw-r--r--cluster_library.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cluster_library.h b/cluster_library.h
index 2ac2c796..49285da7 100644
--- a/cluster_library.h
+++ b/cluster_library.h
@@ -354,7 +354,7 @@ long long mstime(void);
PHP_REDIS_API short cluster_send_command(redisCluster *c, short slot, const char *cmd,
int cmd_len TSRMLS_DC);
-PHP_REDIS_API void cluster_disconnect(redisCluster *c TSRMLS_DC);
+PHP_REDIS_API void cluster_disconnect(redisCluster *c, int force TSRMLS_DC);
PHP_REDIS_API int cluster_send_exec(redisCluster *c, short slot TSRMLS_DC);
PHP_REDIS_API int cluster_send_discard(redisCluster *c, short slot TSRMLS_DC);