diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2018-12-22 16:30:46 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2018-12-22 16:30:46 +0300 |
commit | 3e7e1c833d08aac4e0eeb4e37dcc44768c8b117c (patch) | |
tree | 4c93c4598eb4b9923be707eaf5136c250446311f /redis_array_impl.c | |
parent | 743c7260feb554bc8a941057ccf1293c1888f962 (diff) |
Fix regression added in 602740d3
Diffstat (limited to 'redis_array_impl.c')
-rw-r--r-- | redis_array_impl.c | 2 |
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); } |