From aabce8932a8ef3617301b142447e05c622b48830 Mon Sep 17 00:00:00 2001 From: Binbin Date: Thu, 23 Jun 2022 12:56:25 +0800 Subject: [PATCH] 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. --- src/commands.c | 6 +++++- src/commands/cluster-meet.json | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) 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} }; diff --git a/src/commands/cluster-meet.json b/src/commands/cluster-meet.json index c36b7007e..9a85be76d 100644 --- a/src/commands/cluster-meet.json +++ b/src/commands/cluster-meet.json @@ -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", @@ -23,6 +29,12 @@ { "name": "port", "type": "integer" + }, + { + "name": "cluster_bus_port", + "type": "integer", + "optional": true, + "since": "4.0.0" } ] }