From 561c69c285e9ec00448e9692df7e15878f096bb0 Mon Sep 17 00:00:00 2001 From: Binbin Date: Sun, 20 Jun 2021 14:46:27 +0800 Subject: [PATCH] Improve the debug help command message (#9098) cleanups: 1: Re-introduce debug leak subcommand in help text. Mistankenly deleted in https://github.com/redis/redis/pull/5531 2: Formatted the text. Some text lacks commas resulting in no line breaks. 3: Supplementary debug restart command descriptions of delay arg. --- src/debug.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/debug.c b/src/debug.c index c85bdb2dd..c26b205d5 100644 --- a/src/debug.c +++ b/src/debug.c @@ -389,14 +389,14 @@ void debugCommand(client *c) { " Server will sleep before flushing the AOF, this is used for testing.", "ASSERT", " Crash by assertion failed.", -"CHANGE-REPL-ID" +"CHANGE-REPL-ID", " Change the replication IDs of the instance.", " Dangerous: should be used only for testing the replication subsystem.", "CONFIG-REWRITE-FORCE-ALL", " Like CONFIG REWRITE but writes all configuration options, including", " keywords not listed in original configuration file or default values.", -"CRASH-AND-RECOVER ", -" Hard crash and restart after a delay.", +"CRASH-AND-RECOVER []", +" Hard crash and restart after a delay (default 0).", "DIGEST", " Output a hex signature representing the current DB content.", "DIGEST-VALUE [ ...]", @@ -404,6 +404,8 @@ void debugCommand(client *c) { "ERROR ", " Return a Redis protocol error with as message. Useful for clients", " unit tests to simulate Redis errors.", +"LEAK ", +" Create a memory leak of the input string.", "LOG ", " Write to the server log.", "HTSTATS ", @@ -430,7 +432,7 @@ void debugCommand(client *c) { "POPULATE [] []", " Create string keys named key:. If is specified then", " it is used instead of the 'key' prefix.", -"DEBUG PROTOCOL ", +"PROTOCOL ", " Reply with a test value of the specified type. can be: string,", " integer, double, bignum, null, array, set, map, attrib, push, verbatim,", " true, false.", @@ -438,7 +440,7 @@ void debugCommand(client *c) { " Save the RDB on disk and reload it back to memory. Valid