Update sentinel-config.json to consistent with Config Get and Set operation (#11334)

The sentinel CONFIG GET command doesn't support multiple arguments, but the json file did.
remove that.
This commit is contained in:
Wen Hui 2022-09-29 02:33:37 -04:00 committed by GitHub
parent 0bf90d9443
commit e21c059967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -3662,8 +3662,8 @@ struct redisCommandArg SENTINEL_CONFIG_action_set_Subargs[] = {
/* SENTINEL CONFIG action argument table */
struct redisCommandArg SENTINEL_CONFIG_action_Subargs[] = {
{"set",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_MULTIPLE,.subargs=SENTINEL_CONFIG_action_set_Subargs},
{"get",ARG_TYPE_STRING,-1,"GET",NULL,NULL,CMD_ARG_MULTIPLE,.display_text="parameter"},
{"set",ARG_TYPE_BLOCK,-1,"SET",NULL,NULL,CMD_ARG_NONE,.subargs=SENTINEL_CONFIG_action_set_Subargs},
{"parameter",ARG_TYPE_STRING,-1,"GET",NULL,NULL,CMD_ARG_NONE},
{0}
};

View File

@ -21,7 +21,6 @@
"name":"set",
"token":"SET",
"type":"block",
"multiple":true,
"arguments":[
{
"name":"parameter",
@ -35,9 +34,7 @@
},
{
"token":"GET",
"multiple":true,
"name":"get",
"display":"parameter",
"name":"parameter",
"type":"string"
}
]