Skip to content

Commit

Permalink
update function name to parseAndValidateConnectionPorts
Browse files Browse the repository at this point in the history
Signed-off-by: hwware <[email protected]>
  • Loading branch information
hwware committed Feb 10, 2025
1 parent 24450aa commit 1ab8b98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ int isValidAuxString(char *s, unsigned int length) {
return 1;
}

int verifyPortNumber(client *c, long long *port, long long *cport) {
int parseAndValidateConnectionPorts(client *c, long long *port, long long *cport) {
if (getLongLongFromObject(c->argv[3], port) != C_OK) {
addReplyErrorFormat(c, "Invalid base port specified: %s", (char *)c->argv[3]->ptr);
return C_ERR;
Expand Down
2 changes: 1 addition & 1 deletion src/cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ int isNodeAvailable(clusterNode *node);
long long getNodeReplicationOffset(clusterNode *node);
sds aggregateClientOutputBuffer(client *c);
void resetClusterStats(void);
int verifyPortNumber(client *c, long long *port, long long *cport);
int parseAndValidateConnectionPorts(client *c, long long *port, long long *cport);
#endif /* __CLUSTER_H */
2 changes: 1 addition & 1 deletion src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -6880,7 +6880,7 @@ int clusterCommandSpecial(client *c) {
/* CLUSTER MEET <ip> <port> [cport] */
long long port, cport;

if (verifyPortNumber(c, &port, &cport) == C_ERR) {
if (parseAndValidateConnectionPorts(c, &port, &cport) == C_ERR) {
return 1;
}

Expand Down

0 comments on commit 1ab8b98

Please sign in to comment.