mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -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).",
|
" Reset current node (default: soft).",
|
||||||
"SET-CONFIG-EPOCH <epoch>",
|
"SET-CONFIG-EPOCH <epoch>",
|
||||||
" Set config epoch of current node.",
|
" 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.",
|
" Set slot state.",
|
||||||
"REPLICAS <node-id>",
|
"REPLICAS <node-id>",
|
||||||
" Return <node-id> replicas.",
|
" Return <node-id> replicas.",
|
||||||
|
@ -588,9 +588,9 @@ NULL
|
|||||||
|
|
||||||
/* CLUSTER SETSLOT subcommand argument table */
|
/* CLUSTER SETSLOT subcommand argument table */
|
||||||
struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = {
|
struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = {
|
||||||
{"node-id",ARG_TYPE_INTEGER,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE},
|
{"node-id",ARG_TYPE_STRING,-1,"IMPORTING",NULL,NULL,CMD_ARG_NONE},
|
||||||
{"node-id",ARG_TYPE_INTEGER,-1,"MIGRATING",NULL,NULL,CMD_ARG_NONE},
|
{"node-id",ARG_TYPE_STRING,-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,"NODE",NULL,NULL,CMD_ARG_NONE},
|
||||||
{"stable",ARG_TYPE_PURE_TOKEN,-1,"STABLE",NULL,NULL,CMD_ARG_NONE},
|
{"stable",ARG_TYPE_PURE_TOKEN,-1,"STABLE",NULL,NULL,CMD_ARG_NONE},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
@ -26,17 +26,17 @@
|
|||||||
"arguments": [
|
"arguments": [
|
||||||
{
|
{
|
||||||
"name": "node-id",
|
"name": "node-id",
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"token": "IMPORTING"
|
"token": "IMPORTING"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "node-id",
|
"name": "node-id",
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"token": "MIGRATING"
|
"token": "MIGRATING"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "node-id",
|
"name": "node-id",
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"token": "NODE"
|
"token": "NODE"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user