Unverified Commit c751d8a6 authored by Mixficsol's avatar Mixficsol Committed by GitHub
Browse files

Update cluster.c (#10773)

On line 4068, redis has a logical nodeIsSlave(myself) on the outer if layer,
which you can delete without having to repeat the decision
parent 247e792b
...@@ -4077,7 +4077,7 @@ void clusterCron(void) { ...@@ -4077,7 +4077,7 @@ void clusterCron(void) {
orphaned_masters++; orphaned_masters++;
} }
if (okslaves > max_slaves) max_slaves = okslaves; if (okslaves > max_slaves) max_slaves = okslaves;
if (nodeIsSlave(myself) && myself->slaveof == node) if (myself->slaveof == node)
this_slaves = okslaves; this_slaves = okslaves;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment