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-12-22 16:30:46 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2018-12-22 16:30:46 +0300
commit3e7e1c833d08aac4e0eeb4e37dcc44768c8b117c (patch)
tree4c93c4598eb4b9923be707eaf5136c250446311f /redis_array_impl.c
parent743c7260feb554bc8a941057ccf1293c1888f962 (diff)
Fix regression added in 602740d3
Diffstat (limited to 'redis_array_impl.c')
-rw-r--r--redis_array_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis_array_impl.c b/redis_array_impl.c
index 09afa316..6280b4ca 100644
--- a/redis_array_impl.c
+++ b/redis_array_impl.c
@@ -1164,7 +1164,7 @@ ra_rehash_server(RedisArray *ra, zval *z_redis, zend_string *hostname, zend_bool
/* check that we're not moving to the same node. */
zval *z_target = ra_find_node(ra, Z_STRVAL_P(z_ele), Z_STRLEN_P(z_ele), &pos TSRMLS_CC);
- if (z_target && zend_string_equals(hostname, ra->hosts[pos])) { /* different host */
+ if (z_target && !zend_string_equals(hostname, ra->hosts[pos])) { /* different host */
ra_move_key(Z_STRVAL_P(z_ele), Z_STRLEN_P(z_ele), z_redis, z_target TSRMLS_CC);
}