mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05: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:
parent
247e792bde
commit
c751d8a686
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user