summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMadelyn Olson <34459052+madolson@users.noreply.github.com>2022-04-05 00:36:06 -0700
committerGitHub <noreply@github.com>2022-04-05 10:36:06 +0300
commit4ffcec29af9dc1246540d94834540528576c68a4 (patch)
tree5e41dbd0004d8dde6e198048d43033e039467b60 /src
parentae020e3d5665e46dbd2704b46b6ad207dd4471d9 (diff)
downloadredis-4ffcec29af9dc1246540d94834540528576c68a4.tar.gz
Update json command files so they only include syntax related information (#10398)
The command json documents should just include information about the "arguments" and the "outputs". I removed all of the 'functional wording' so it's clear.
Diffstat (limited to 'src')
-rw-r--r--src/commands.c28
-rw-r--r--src/commands/client-pause.json4
-rw-r--r--src/commands/cluster-slots.json2
-rw-r--r--src/commands/flushall.json2
-rw-r--r--src/commands/flushdb.json2
-rw-r--r--src/commands/monitor.json15
-rw-r--r--src/commands/rename.json7
-rw-r--r--src/commands/script-flush.json2
-rw-r--r--src/commands/shutdown.json2
-rw-r--r--src/commands/subscribe.json7
10 files changed, 16 insertions, 55 deletions
diff --git a/src/commands.c b/src/commands.c
index cd61cc262..efc159ad8 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -635,7 +635,7 @@ struct redisCommandArg CLUSTER_SLAVES_Args[] = {
/* CLUSTER SLOTS history */
commandHistory CLUSTER_SLOTS_History[] = {
{"4.0.0","Added node IDs."},
-{"7.0.0","Added additional networking metadata and added support for hostnames and unknown endpoints."},
+{"7.0.0","Added additional networking metadata field."},
{0}
};
@@ -883,7 +883,6 @@ struct redisCommandArg CLIENT_NO_EVICT_Args[] = {
/* CLIENT PAUSE history */
commandHistory CLIENT_PAUSE_History[] = {
-{"3.2.10","Client pause prevents client pause and key eviction as well."},
{"6.2.0","`CLIENT PAUSE WRITE` mode added along with the `mode` option."},
{0}
};
@@ -1564,10 +1563,7 @@ NULL
/********** RENAME ********************/
/* RENAME history */
-commandHistory RENAME_History[] = {
-{"3.2.0","The command no longer returns an error when source and destination names are the same."},
-{0}
-};
+#define RENAME_History NULL
/* RENAME tips */
#define RENAME_tips NULL
@@ -3178,10 +3174,7 @@ struct redisCommandArg SSUBSCRIBE_Args[] = {
/********** SUBSCRIBE ********************/
/* SUBSCRIBE history */
-commandHistory SUBSCRIBE_History[] = {
-{"6.2.0","`RESET` can be called to exit subscribed state."},
-{0}
-};
+#define SUBSCRIBE_History NULL
/* SUBSCRIBE tips */
#define SUBSCRIBE_tips NULL
@@ -3536,7 +3529,7 @@ struct redisCommandArg SCRIPT_EXISTS_Args[] = {
/* SCRIPT FLUSH history */
commandHistory SCRIPT_FLUSH_History[] = {
-{"6.2.0","Added the `ASYNC` and `SYNC` flushing mode modifiers, as well as the **lazyfree-lazy-user-flush** configuration directive."},
+{"6.2.0","Added the `ASYNC` and `SYNC` flushing mode modifiers."},
{0}
};
@@ -4417,7 +4410,7 @@ struct redisCommandArg FAILOVER_Args[] = {
/* FLUSHALL history */
commandHistory FLUSHALL_History[] = {
{"4.0.0","Added the `ASYNC` flushing mode modifier."},
-{"6.2.0","Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."},
+{"6.2.0","Added the `SYNC` flushing mode modifier."},
{0}
};
@@ -4446,7 +4439,7 @@ struct redisCommandArg FLUSHALL_Args[] = {
/* FLUSHDB history */
commandHistory FLUSHDB_History[] = {
{"4.0.0","Added the `ASYNC` flushing mode modifier."},
-{"6.2.0","Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."},
+{"6.2.0","Added the `SYNC` flushing mode modifier."},
{0}
};
@@ -4837,12 +4830,7 @@ struct redisCommand MODULE_Subcommands[] = {
/********** MONITOR ********************/
/* MONITOR history */
-commandHistory MONITOR_History[] = {
-{"6.0.0","`AUTH` excluded from the command's output."},
-{"6.2.0","`RESET` can be called to exit monitor mode."},
-{"6.2.4","`AUTH`, `HELLO`, `EVAL`, `EVAL_RO`, `EVALSHA` and `EVALSHA_RO` included in the command's output."},
-{0}
-};
+#define MONITOR_History NULL
/* MONITOR tips */
#define MONITOR_tips NULL
@@ -4913,7 +4901,7 @@ struct redisCommandArg REPLICAOF_Args[] = {
/* SHUTDOWN history */
commandHistory SHUTDOWN_History[] = {
-{"7.0.0","Added the `NOW`, `FORCE` and `ABORT` modifiers. Introduced waiting for lagging replicas before exiting."},
+{"7.0.0","Added the `NOW`, `FORCE` and `ABORT` modifiers."},
{0}
};
diff --git a/src/commands/client-pause.json b/src/commands/client-pause.json
index abb26fea2..3a1d9be83 100644
--- a/src/commands/client-pause.json
+++ b/src/commands/client-pause.json
@@ -9,10 +9,6 @@
"function": "clientCommand",
"history": [
[
- "3.2.10",
- "Client pause prevents client pause and key eviction as well."
- ],
- [
"6.2.0",
"`CLIENT PAUSE WRITE` mode added along with the `mode` option."
]
diff --git a/src/commands/cluster-slots.json b/src/commands/cluster-slots.json
index 6da781755..e8782420e 100644
--- a/src/commands/cluster-slots.json
+++ b/src/commands/cluster-slots.json
@@ -19,7 +19,7 @@
],
[
"7.0.0",
- "Added additional networking metadata and added support for hostnames and unknown endpoints."
+ "Added additional networking metadata field."
]
],
"command_flags": [
diff --git a/src/commands/flushall.json b/src/commands/flushall.json
index a85f35925..ef6a1f883 100644
--- a/src/commands/flushall.json
+++ b/src/commands/flushall.json
@@ -13,7 +13,7 @@
],
[
"6.2.0",
- "Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."
+ "Added the `SYNC` flushing mode modifier."
]
],
"command_flags": [
diff --git a/src/commands/flushdb.json b/src/commands/flushdb.json
index 40f8912ba..408ab326b 100644
--- a/src/commands/flushdb.json
+++ b/src/commands/flushdb.json
@@ -13,7 +13,7 @@
],
[
"6.2.0",
- "Added the `SYNC` flushing mode modifier and the **lazyfree-lazy-user-flush** configuration directive."
+ "Added the `SYNC` flushing mode modifier."
]
],
"command_flags": [
diff --git a/src/commands/monitor.json b/src/commands/monitor.json
index 5c9f0629c..a305c4fce 100644
--- a/src/commands/monitor.json
+++ b/src/commands/monitor.json
@@ -5,20 +5,7 @@
"since": "1.0.0",
"arity": 1,
"function": "monitorCommand",
- "history": [
- [
- "6.0.0",
- "`AUTH` excluded from the command's output."
- ],
- [
- "6.2.0",
- "`RESET` can be called to exit monitor mode."
- ],
- [
- "6.2.4",
- "`AUTH`, `HELLO`, `EVAL`, `EVAL_RO`, `EVALSHA` and `EVALSHA_RO` included in the command's output."
- ]
- ],
+ "history": [],
"command_flags": [
"ADMIN",
"NOSCRIPT",
diff --git a/src/commands/rename.json b/src/commands/rename.json
index 92d53979a..1196abaf4 100644
--- a/src/commands/rename.json
+++ b/src/commands/rename.json
@@ -6,12 +6,7 @@
"since": "1.0.0",
"arity": 3,
"function": "renameCommand",
- "history": [
- [
- "3.2.0",
- "The command no longer returns an error when source and destination names are the same."
- ]
- ],
+ "history": [],
"command_flags": [
"WRITE"
],
diff --git a/src/commands/script-flush.json b/src/commands/script-flush.json
index 3503d1cad..b246bdef5 100644
--- a/src/commands/script-flush.json
+++ b/src/commands/script-flush.json
@@ -10,7 +10,7 @@
"history": [
[
"6.2.0",
- "Added the `ASYNC` and `SYNC` flushing mode modifiers, as well as the **lazyfree-lazy-user-flush** configuration directive."
+ "Added the `ASYNC` and `SYNC` flushing mode modifiers."
]
],
"command_flags": [
diff --git a/src/commands/shutdown.json b/src/commands/shutdown.json
index 605cc2b16..63da3ca03 100644
--- a/src/commands/shutdown.json
+++ b/src/commands/shutdown.json
@@ -9,7 +9,7 @@
"history": [
[
"7.0.0",
- "Added the `NOW`, `FORCE` and `ABORT` modifiers. Introduced waiting for lagging replicas before exiting."
+ "Added the `NOW`, `FORCE` and `ABORT` modifiers."
]
],
"command_flags": [
diff --git a/src/commands/subscribe.json b/src/commands/subscribe.json
index b0f00d9e6..fa6ac076a 100644
--- a/src/commands/subscribe.json
+++ b/src/commands/subscribe.json
@@ -6,12 +6,7 @@
"since": "2.0.0",
"arity": -2,
"function": "subscribeCommand",
- "history": [
- [
- "6.2.0",
- "`RESET` can be called to exit subscribed state."
- ]
- ],
+ "history": [],
"command_flags": [
"PUBSUB",
"NOSCRIPT",