summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-02-06 10:21:55 +0100
committerGitHub <noreply@github.com>2020-02-06 10:21:55 +0100
commitf25962337dbde2d596a2d7b014bce5b06feb6031 (patch)
tree7ea8fa024d3321b83c37dbcda814f5498ec21e0a
parent15c7f1317efa00cf7111163bd3bdd16af3fb2be0 (diff)
parent31ffbf11332fbc6afd69ca94f77ea66bbfb918e3 (diff)
downloadredis-f25962337dbde2d596a2d7b014bce5b06feb6031.tar.gz
Merge pull request #6853 from oranagra/debug_help
DEBUG HELP - add PROTOCOL
-rw-r--r--src/debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/debug.c b/src/debug.c
index a2d37337d..b910d2d2d 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -355,6 +355,7 @@ void debugCommand(client *c) {
"CRASH-AND-RECOVER <milliseconds> -- Hard crash and restart after <milliseconds> delay.",
"DIGEST -- Output a hex signature representing the current DB content.",
"DIGEST-VALUE <key-1> ... <key-N>-- Output a hex signature of the values of all the specified keys.",
+"DEBUG PROTOCOL [string|integer|double|bignum|null|array|set|map|attrib|push|verbatim|true|false]",
"ERROR <string> -- Return a Redis protocol error with <string> as message. Useful for clients unit tests to simulate Redis errors.",
"LOG <message> -- write message to the server log.",
"HTSTATS <dbid> -- Return hash table statistics of the specified Redis database.",
@@ -586,7 +587,7 @@ NULL
}
} else if (!strcasecmp(c->argv[1]->ptr,"protocol") && c->argc == 3) {
/* DEBUG PROTOCOL [string|integer|double|bignum|null|array|set|map|
- * attrib|push|verbatim|true|false|state|err|bloberr] */
+ * attrib|push|verbatim|true|false] */
char *name = c->argv[2]->ptr;
if (!strcasecmp(name,"string")) {
addReplyBulkCString(c,"Hello World");
@@ -634,7 +635,7 @@ NULL
} else if (!strcasecmp(name,"verbatim")) {
addReplyVerbatim(c,"This is a verbatim\nstring",25,"txt");
} else {
- addReplyError(c,"Wrong protocol type name. Please use one of the following: string|integer|double|bignum|null|array|set|map|attrib|push|verbatim|true|false|state|err|bloberr");
+ addReplyError(c,"Wrong protocol type name. Please use one of the following: string|integer|double|bignum|null|array|set|map|attrib|push|verbatim|true|false");
}
} else if (!strcasecmp(c->argv[1]->ptr,"sleep") && c->argc == 3) {
double dtime = strtod(c->argv[2]->ptr,NULL);