summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-06-23 12:56:25 +0800
committerGitHub <noreply@github.com>2022-06-23 07:56:25 +0300
commitaabce8932a8ef3617301b142447e05c622b48830 (patch)
tree0c0116341ec5e4df2b7fdc7584a512dddb69bc6e /src/commands.c
parent49876158cc2e77bba8e4658fa757891310dc37b6 (diff)
downloadredis-aabce8932a8ef3617301b142447e05c622b48830.tar.gz
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.
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c
index d2364b0ab..1e40b5e54 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -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[] = {
@@ -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}
};