Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8685c49

Browse filesBrowse files
Use continue not break if we get a NULL node
This is likely to never happen but just skipping NULL nodes is better than aborting the reset. Co-authored-by: Pavlo Yatsukhnenko <yatsukhnenko@users.noreply.github.com>
1 parent f4ec5e2 commit 8685c49
Copy full SHA for 8685c49

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎redis_cluster.c‎

Copy file name to clipboardExpand all lines: redis_cluster.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static void cluster_reset_multi(redisCluster *c) {
8181
redisClusterNode *node;
8282
ZEND_HASH_FOREACH_PTR(c->nodes, node) {
8383
if (node == NULL)
84-
break;
84+
continue;
8585
node->sock->watching = 0;
8686
node->sock->mode = ATOMIC;
8787
} ZEND_HASH_FOREACH_END();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.