Skip to content

Commit

Permalink
Update src/cluster_legacy.c
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>

Co-authored-by: Ping Xie <[email protected]>
  • Loading branch information
enjoy-binbin and PingXie authored Jun 14, 2024
1 parent af2e92c commit acfdbb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ int verifyClusterNodeId(const char *name, int length);
sds clusterEncodeOpenSlotsAuxField(int rdbflags);
int clusterDecodeOpenSlotsAuxField(int rdbflags, sds s);

/* Only primary that own slots have the voting rights.
* And only voting primary will be counted in cluster size.
*
/* Only primaries that own slots have voting rights.
* Returns 1 if the node has voting rights, otherwise returns 0. */
static inline int clusterNodeIsVotingPrimary(clusterNode *n) {
return (n->flags & CLUSTER_NODE_PRIMARY) && n->numslots;
Expand Down

0 comments on commit acfdbb8

Please sign in to comment.