Add bus_port argument in cluster-meet.json (#10304)

In `CLUSTER MEET`, bus-port argument was added in 11436b1.
For cluster announce ip / port implementation, part of the
4.0-RC1.

And in #9389, we add a new cluster-port config and make
cluster bus port configurable, part of the 7.0-RC1.
This commit is contained in:
Binbin 2022-06-23 12:56:25 +08:00 committed by GitHub
parent 49876158cc
commit aabce8932a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -470,7 +470,10 @@ NULL
/********** CLUSTER MEET ********************/ /********** CLUSTER MEET ********************/
/* CLUSTER MEET history */ /* 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 */ /* CLUSTER MEET tips */
const char *CLUSTER_MEET_tips[] = { const char *CLUSTER_MEET_tips[] = {
@ -482,6 +485,7 @@ NULL
struct redisCommandArg CLUSTER_MEET_Args[] = { struct redisCommandArg CLUSTER_MEET_Args[] = {
{"ip",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"ip",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE},
{"port",ARG_TYPE_INTEGER,-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} {0}
}; };

View File

@ -7,6 +7,12 @@
"arity": -4, "arity": -4,
"container": "CLUSTER", "container": "CLUSTER",
"function": "clusterCommand", "function": "clusterCommand",
"history": [
[
"4.0.0",
"Added the optional `cluster_bus_port` argument."
]
],
"command_flags": [ "command_flags": [
"NO_ASYNC_LOADING", "NO_ASYNC_LOADING",
"ADMIN", "ADMIN",
@ -23,6 +29,12 @@
{ {
"name": "port", "name": "port",
"type": "integer" "type": "integer"
},
{
"name": "cluster_bus_port",
"type": "integer",
"optional": true,
"since": "4.0.0"
} }
] ]
} }