Skip to content

Commit

Permalink
Add bus_port argument in cluster-meet.json (redis#10304)
Browse files Browse the repository at this point in the history
In `CLUSTER MEET`, bus-port argument was added in 11436b1.
For cluster announce ip / port implementation, part of the
4.0-RC1.

And in redis#9389, we add a new cluster-port config and make
cluster bus port configurable, part of the 7.0-RC1.
  • Loading branch information
enjoy-binbin committed Jul 31, 2023
1 parent 959021a commit a1c6b2c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ NULL
/********** CLUSTER MEET ********************/

/* CLUSTER MEET history */
#define CLUSTER_MEET_History NULL
commandHistory CLUSTER_MEET_History[] = {
{"4.0.0","Added the optional `bus_port` argument."},
{0}
};

/* CLUSTER MEET tips */
const char *CLUSTER_MEET_tips[] = {
Expand All @@ -482,6 +485,7 @@ NULL
struct redisCommandArg CLUSTER_MEET_Args[] = {
{"ip",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE},
{"port",ARG_TYPE_INTEGER,-1,NULL,NULL,NULL,CMD_ARG_NONE},
{"bus_port",ARG_TYPE_INTEGER,-1,NULL,NULL,"4.0.0",CMD_ARG_OPTIONAL},
{0}
};

Expand Down
12 changes: 12 additions & 0 deletions src/commands/cluster-meet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"arity": -4,
"container": "CLUSTER",
"function": "clusterCommand",
"history": [
[
"4.0.0",
"Added the optional `cluster_bus_port` argument."
]
],
"command_flags": [
"NO_ASYNC_LOADING",
"ADMIN",
Expand All @@ -23,6 +29,12 @@
{
"name": "port",
"type": "integer"
},
{
"name": "cluster_bus_port",
"type": "integer",
"optional": true,
"since": "4.0.0"
}
]
}
Expand Down

0 comments on commit a1c6b2c

Please sign in to comment.