mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
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
This commit is contained in:
@@ -4077,7 +4077,7 @@ void clusterCron(void) {
|
||||
orphaned_masters++;
|
||||
}
|
||||
if (okslaves > max_slaves) max_slaves = okslaves;
|
||||
if (nodeIsSlave(myself) && myself->slaveof == node)
|
||||
if (myself->slaveof == node)
|
||||
this_slaves = okslaves;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user