mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix node-id type in cluster-setslot (#10348)
* The type of node-id should be string, not integer. * Also improve the CLUSTER SETSLOT help message.
This commit is contained in:
parent
a6fd237537
commit
ad7a6275ff
@ -5026,7 +5026,7 @@ void clusterCommand(client *c) {
|
||||
" Reset current node (default: soft).",
|
||||
"SET-CONFIG-EPOCH <epoch>",
|
||||
" Set config epoch of current node.",
|
||||
"SETSLOT <slot> (IMPORTING|MIGRATING|STABLE|NODE <node-id>)",
|
||||
"SETSLOT <slot> (IMPORTING <node-id>|MIGRATING <node-id>|STABLE|NODE <node-id>)",
|
||||
" Set slot state.",
|
||||
"REPLICAS <node-id>",
|
||||
" Return <node-id> replicas.",
|
||||
|
@ -588,9 +588,9 @@ NULL
|
||||
|
||||
/* CLUSTER SETSLOT subcommand argument table */
|
||||
struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = {
|
||||
{"node-id",ARG_TYPE_INTEGER,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE},
|
||||
{"node-id",ARG_TYPE_INTEGER,-1,"MIGRATING",NULL,NULL,CMD_ARG_NONE},
|
||||
{"node-id",ARG_TYPE_INTEGER,-1,"NODE",NULL,NULL,CMD_ARG_NONE},
|
||||
{"node-id",ARG_TYPE_STRING,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE},
|
||||
{"node-id",ARG_TYPE_STRING,-1,"MIGRATING",NULL,NULL,CMD_ARG_NONE},
|
||||
{"node-id",ARG_TYPE_STRING,-1,"NODE",NULL,NULL,CMD_ARG_NONE},
|
||||
{"stable",ARG_TYPE_PURE_TOKEN,-1,"STABLE",NULL,NULL,CMD_ARG_NONE},
|
||||
{0}
|
||||
};
|
||||
|
@ -26,17 +26,17 @@
|
||||
"arguments": [
|
||||
{
|
||||
"name": "node-id",
|
||||
"type": "integer",
|
||||
"type": "string",
|
||||
"token": "IMPORTING"
|
||||
},
|
||||
{
|
||||
"name": "node-id",
|
||||
"type": "integer",
|
||||
"type": "string",
|
||||
"token": "MIGRATING"
|
||||
},
|
||||
{
|
||||
"name": "node-id",
|
||||
"type": "integer",
|
||||
"type": "string",
|
||||
"token": "NODE"
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user