Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e7e1c8

Browse files
committed
Fix regression added in 602740d
1 parent 743c726 commit 3e7e1c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redis_array_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ ra_rehash_server(RedisArray *ra, zval *z_redis, zend_string *hostname, zend_bool
11641164
/* check that we're not moving to the same node. */
11651165
zval *z_target = ra_find_node(ra, Z_STRVAL_P(z_ele), Z_STRLEN_P(z_ele), &pos TSRMLS_CC);
11661166

1167-
if (z_target && zend_string_equals(hostname, ra->hosts[pos])) { /* different host */
1167+
if (z_target && !zend_string_equals(hostname, ra->hosts[pos])) { /* different host */
11681168
ra_move_key(Z_STRVAL_P(z_ele), Z_STRLEN_P(z_ele), z_redis, z_target TSRMLS_CC);
11691169
}
11701170

0 commit comments

Comments
 (0)