Unverified Commit a7da7473 authored by Huang Zhw's avatar Huang Zhw Committed by GitHub
Browse files

Remove the NONDETERMINISTIC_OUTPUT flag from most CLUSTER sub-commands. (#11157)

TLDR: the CLUSTER command originally had the `random` flag,
so all the sub-commands initially got that new flag, but in fact many
of them don't need it.
The only effect of this change is on the output of COMMAND INFO.
parent 246f44d7
...@@ -229,10 +229,7 @@ struct redisCommandArg SETBIT_Args[] = { ...@@ -229,10 +229,7 @@ struct redisCommandArg SETBIT_Args[] = {
#define CLUSTER_ADDSLOTS_History NULL #define CLUSTER_ADDSLOTS_History NULL
/* CLUSTER ADDSLOTS tips */ /* CLUSTER ADDSLOTS tips */
const char *CLUSTER_ADDSLOTS_tips[] = { #define CLUSTER_ADDSLOTS_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER ADDSLOTS argument table */ /* CLUSTER ADDSLOTS argument table */
struct redisCommandArg CLUSTER_ADDSLOTS_Args[] = { struct redisCommandArg CLUSTER_ADDSLOTS_Args[] = {
...@@ -246,10 +243,7 @@ struct redisCommandArg CLUSTER_ADDSLOTS_Args[] = { ...@@ -246,10 +243,7 @@ struct redisCommandArg CLUSTER_ADDSLOTS_Args[] = {
#define CLUSTER_ADDSLOTSRANGE_History NULL #define CLUSTER_ADDSLOTSRANGE_History NULL
/* CLUSTER ADDSLOTSRANGE tips */ /* CLUSTER ADDSLOTSRANGE tips */
const char *CLUSTER_ADDSLOTSRANGE_tips[] = { #define CLUSTER_ADDSLOTSRANGE_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER ADDSLOTSRANGE range argument table */ /* CLUSTER ADDSLOTSRANGE range argument table */
struct redisCommandArg CLUSTER_ADDSLOTSRANGE_range_Subargs[] = { struct redisCommandArg CLUSTER_ADDSLOTSRANGE_range_Subargs[] = {
...@@ -298,10 +292,7 @@ struct redisCommandArg CLUSTER_COUNT_FAILURE_REPORTS_Args[] = { ...@@ -298,10 +292,7 @@ struct redisCommandArg CLUSTER_COUNT_FAILURE_REPORTS_Args[] = {
#define CLUSTER_COUNTKEYSINSLOT_History NULL #define CLUSTER_COUNTKEYSINSLOT_History NULL
/* CLUSTER COUNTKEYSINSLOT tips */ /* CLUSTER COUNTKEYSINSLOT tips */
const char *CLUSTER_COUNTKEYSINSLOT_tips[] = { #define CLUSTER_COUNTKEYSINSLOT_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER COUNTKEYSINSLOT argument table */ /* CLUSTER COUNTKEYSINSLOT argument table */
struct redisCommandArg CLUSTER_COUNTKEYSINSLOT_Args[] = { struct redisCommandArg CLUSTER_COUNTKEYSINSLOT_Args[] = {
...@@ -315,10 +306,7 @@ struct redisCommandArg CLUSTER_COUNTKEYSINSLOT_Args[] = { ...@@ -315,10 +306,7 @@ struct redisCommandArg CLUSTER_COUNTKEYSINSLOT_Args[] = {
#define CLUSTER_DELSLOTS_History NULL #define CLUSTER_DELSLOTS_History NULL
/* CLUSTER DELSLOTS tips */ /* CLUSTER DELSLOTS tips */
const char *CLUSTER_DELSLOTS_tips[] = { #define CLUSTER_DELSLOTS_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER DELSLOTS argument table */ /* CLUSTER DELSLOTS argument table */
struct redisCommandArg CLUSTER_DELSLOTS_Args[] = { struct redisCommandArg CLUSTER_DELSLOTS_Args[] = {
...@@ -332,10 +320,7 @@ struct redisCommandArg CLUSTER_DELSLOTS_Args[] = { ...@@ -332,10 +320,7 @@ struct redisCommandArg CLUSTER_DELSLOTS_Args[] = {
#define CLUSTER_DELSLOTSRANGE_History NULL #define CLUSTER_DELSLOTSRANGE_History NULL
/* CLUSTER DELSLOTSRANGE tips */ /* CLUSTER DELSLOTSRANGE tips */
const char *CLUSTER_DELSLOTSRANGE_tips[] = { #define CLUSTER_DELSLOTSRANGE_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER DELSLOTSRANGE range argument table */ /* CLUSTER DELSLOTSRANGE range argument table */
struct redisCommandArg CLUSTER_DELSLOTSRANGE_range_Subargs[] = { struct redisCommandArg CLUSTER_DELSLOTSRANGE_range_Subargs[] = {
...@@ -356,10 +341,7 @@ struct redisCommandArg CLUSTER_DELSLOTSRANGE_Args[] = { ...@@ -356,10 +341,7 @@ struct redisCommandArg CLUSTER_DELSLOTSRANGE_Args[] = {
#define CLUSTER_FAILOVER_History NULL #define CLUSTER_FAILOVER_History NULL
/* CLUSTER FAILOVER tips */ /* CLUSTER FAILOVER tips */
const char *CLUSTER_FAILOVER_tips[] = { #define CLUSTER_FAILOVER_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER FAILOVER options argument table */ /* CLUSTER FAILOVER options argument table */
struct redisCommandArg CLUSTER_FAILOVER_options_Subargs[] = { struct redisCommandArg CLUSTER_FAILOVER_options_Subargs[] = {
...@@ -380,10 +362,7 @@ struct redisCommandArg CLUSTER_FAILOVER_Args[] = { ...@@ -380,10 +362,7 @@ struct redisCommandArg CLUSTER_FAILOVER_Args[] = {
#define CLUSTER_FLUSHSLOTS_History NULL #define CLUSTER_FLUSHSLOTS_History NULL
/* CLUSTER FLUSHSLOTS tips */ /* CLUSTER FLUSHSLOTS tips */
const char *CLUSTER_FLUSHSLOTS_tips[] = { #define CLUSTER_FLUSHSLOTS_tips NULL
"nondeterministic_output",
NULL
};
/********** CLUSTER FORGET ********************/ /********** CLUSTER FORGET ********************/
...@@ -391,10 +370,7 @@ NULL ...@@ -391,10 +370,7 @@ NULL
#define CLUSTER_FORGET_History NULL #define CLUSTER_FORGET_History NULL
/* CLUSTER FORGET tips */ /* CLUSTER FORGET tips */
const char *CLUSTER_FORGET_tips[] = { #define CLUSTER_FORGET_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER FORGET argument table */ /* CLUSTER FORGET argument table */
struct redisCommandArg CLUSTER_FORGET_Args[] = { struct redisCommandArg CLUSTER_FORGET_Args[] = {
...@@ -445,10 +421,7 @@ NULL ...@@ -445,10 +421,7 @@ NULL
#define CLUSTER_KEYSLOT_History NULL #define CLUSTER_KEYSLOT_History NULL
/* CLUSTER KEYSLOT tips */ /* CLUSTER KEYSLOT tips */
const char *CLUSTER_KEYSLOT_tips[] = { #define CLUSTER_KEYSLOT_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER KEYSLOT argument table */ /* CLUSTER KEYSLOT argument table */
struct redisCommandArg CLUSTER_KEYSLOT_Args[] = { struct redisCommandArg CLUSTER_KEYSLOT_Args[] = {
...@@ -476,10 +449,7 @@ commandHistory CLUSTER_MEET_History[] = { ...@@ -476,10 +449,7 @@ commandHistory CLUSTER_MEET_History[] = {
}; };
/* CLUSTER MEET tips */ /* CLUSTER MEET tips */
const char *CLUSTER_MEET_tips[] = { #define CLUSTER_MEET_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER MEET argument table */ /* CLUSTER MEET argument table */
struct redisCommandArg CLUSTER_MEET_Args[] = { struct redisCommandArg CLUSTER_MEET_Args[] = {
...@@ -495,10 +465,7 @@ struct redisCommandArg CLUSTER_MEET_Args[] = { ...@@ -495,10 +465,7 @@ struct redisCommandArg CLUSTER_MEET_Args[] = {
#define CLUSTER_MYID_History NULL #define CLUSTER_MYID_History NULL
/* CLUSTER MYID tips */ /* CLUSTER MYID tips */
const char *CLUSTER_MYID_tips[] = { #define CLUSTER_MYID_tips NULL
"nondeterministic_output",
NULL
};
/********** CLUSTER NODES ********************/ /********** CLUSTER NODES ********************/
...@@ -534,10 +501,7 @@ struct redisCommandArg CLUSTER_REPLICAS_Args[] = { ...@@ -534,10 +501,7 @@ struct redisCommandArg CLUSTER_REPLICAS_Args[] = {
#define CLUSTER_REPLICATE_History NULL #define CLUSTER_REPLICATE_History NULL
/* CLUSTER REPLICATE tips */ /* CLUSTER REPLICATE tips */
const char *CLUSTER_REPLICATE_tips[] = { #define CLUSTER_REPLICATE_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER REPLICATE argument table */ /* CLUSTER REPLICATE argument table */
struct redisCommandArg CLUSTER_REPLICATE_Args[] = { struct redisCommandArg CLUSTER_REPLICATE_Args[] = {
...@@ -551,10 +515,7 @@ struct redisCommandArg CLUSTER_REPLICATE_Args[] = { ...@@ -551,10 +515,7 @@ struct redisCommandArg CLUSTER_REPLICATE_Args[] = {
#define CLUSTER_RESET_History NULL #define CLUSTER_RESET_History NULL
/* CLUSTER RESET tips */ /* CLUSTER RESET tips */
const char *CLUSTER_RESET_tips[] = { #define CLUSTER_RESET_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER RESET reset_type argument table */ /* CLUSTER RESET reset_type argument table */
struct redisCommandArg CLUSTER_RESET_reset_type_Subargs[] = { struct redisCommandArg CLUSTER_RESET_reset_type_Subargs[] = {
...@@ -575,10 +536,7 @@ struct redisCommandArg CLUSTER_RESET_Args[] = { ...@@ -575,10 +536,7 @@ struct redisCommandArg CLUSTER_RESET_Args[] = {
#define CLUSTER_SAVECONFIG_History NULL #define CLUSTER_SAVECONFIG_History NULL
/* CLUSTER SAVECONFIG tips */ /* CLUSTER SAVECONFIG tips */
const char *CLUSTER_SAVECONFIG_tips[] = { #define CLUSTER_SAVECONFIG_tips NULL
"nondeterministic_output",
NULL
};
/********** CLUSTER SET_CONFIG_EPOCH ********************/ /********** CLUSTER SET_CONFIG_EPOCH ********************/
...@@ -586,10 +544,7 @@ NULL ...@@ -586,10 +544,7 @@ NULL
#define CLUSTER_SET_CONFIG_EPOCH_History NULL #define CLUSTER_SET_CONFIG_EPOCH_History NULL
/* CLUSTER SET_CONFIG_EPOCH tips */ /* CLUSTER SET_CONFIG_EPOCH tips */
const char *CLUSTER_SET_CONFIG_EPOCH_tips[] = { #define CLUSTER_SET_CONFIG_EPOCH_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER SET_CONFIG_EPOCH argument table */ /* CLUSTER SET_CONFIG_EPOCH argument table */
struct redisCommandArg CLUSTER_SET_CONFIG_EPOCH_Args[] = { struct redisCommandArg CLUSTER_SET_CONFIG_EPOCH_Args[] = {
...@@ -603,10 +558,7 @@ struct redisCommandArg CLUSTER_SET_CONFIG_EPOCH_Args[] = { ...@@ -603,10 +558,7 @@ struct redisCommandArg CLUSTER_SET_CONFIG_EPOCH_Args[] = {
#define CLUSTER_SETSLOT_History NULL #define CLUSTER_SETSLOT_History NULL
/* CLUSTER SETSLOT tips */ /* CLUSTER SETSLOT tips */
const char *CLUSTER_SETSLOT_tips[] = { #define CLUSTER_SETSLOT_tips NULL
"nondeterministic_output",
NULL
};
/* CLUSTER SETSLOT subcommand argument table */ /* CLUSTER SETSLOT subcommand argument table */
struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = { struct redisCommandArg CLUSTER_SETSLOT_subcommand_Subargs[] = {
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "slot", "name": "slot",
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "range", "name": "range",
......
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
"command_flags": [ "command_flags": [
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "slot", "name": "slot",
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "slot", "name": "slot",
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "range", "name": "range",
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "options", "name": "options",
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
"NO_ASYNC_LOADING", "NO_ASYNC_LOADING",
"ADMIN", "ADMIN",
"STALE" "STALE"
],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
] ]
} }
} }
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "node-id", "name": "node-id",
......
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
"command_flags": [ "command_flags": [
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "key", "name": "key",
......
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "ip", "name": "ip",
......
...@@ -9,9 +9,6 @@ ...@@ -9,9 +9,6 @@
"function": "clusterCommand", "function": "clusterCommand",
"command_flags": [ "command_flags": [
"STALE" "STALE"
],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
] ]
} }
} }
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "node-id", "name": "node-id",
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"STALE", "STALE",
"NOSCRIPT" "NOSCRIPT"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "reset-type", "name": "reset-type",
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
"NO_ASYNC_LOADING", "NO_ASYNC_LOADING",
"ADMIN", "ADMIN",
"STALE" "STALE"
],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
] ]
} }
} }
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "config-epoch", "name": "config-epoch",
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
"ADMIN", "ADMIN",
"STALE" "STALE"
], ],
"command_tips": [
"NONDETERMINISTIC_OUTPUT"
],
"arguments": [ "arguments": [
{ {
"name": "slot", "name": "slot",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment