From: Willy Tarreau Date: Sat, 13 Apr 2013 07:41:37 +0000 (+0200) Subject: BUG/MINOR: cli: "clear table xx data.xx" does not work anymore X-Git-Tag: v1.5-dev19~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04b3a197098983c145090632a06c13d7ee6a18dd;p=thirdparty%2Fhaproxy.git BUG/MINOR: cli: "clear table xx data.xx" does not work anymore Commit 654694e1 introduced in 1.5-dev12 broke the ability to clear some entries in a table by the value of their data fields. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 8ee1eec5c3..578247e992 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -741,8 +741,8 @@ static void stats_sock_table_key_request(struct stream_interface *si, char **arg static void stats_sock_table_data_request(struct stream_interface *si, char **args, int action) { - if (action != STAT_CLI_O_TAB) { - si->applet.ctx.cli.msg = "content-based lookup is only supported with the \"show\" action"; + if (action != STAT_CLI_O_TAB && action != STAT_CLI_O_CLR) { + si->applet.ctx.cli.msg = "content-based lookup is only supported with the \"show\" and \"clear\" actions"; si->applet.st0 = STAT_CLI_PRINT; return; }