MINOR: stats: fix typo in help messages
The word "available" was mistakenly written "avalaible" in help messages and
comments.
This patch should be backported to 1.5 and 1.6
(cherry picked from commit db98eb3b5c36e649b24a8af23dd5d6bab4a8bf4d)
(cherry picked from commit 39a0ee7abe0ff7f041a471a88de9da42ea356dbb)
diff --git a/src/dumpstats.c b/src/dumpstats.c
index a8d95dc..7347af4 100644
--- a/src/dumpstats.c
+++ b/src/dumpstats.c
@@ -81,7 +81,7 @@
STAT_CLI_O_CLR, /* clear tables */
STAT_CLI_O_SET, /* set entries in tables */
STAT_CLI_O_STAT, /* dump stats */
- STAT_CLI_O_PATS, /* list all pattern reference avalaible */
+ STAT_CLI_O_PATS, /* list all pattern reference available */
STAT_CLI_O_PAT, /* list all entries of a pattern */
STAT_CLI_O_MLOOK, /* lookup a map entry */
STAT_CLI_O_POOLS, /* dump memory pools */
@@ -186,12 +186,12 @@
" disable : put a server or frontend in maintenance mode\n"
" enable : re-enable a server or frontend which is in maintenance mode\n"
" shutdown : kill a session or a frontend (eg:to release listening ports)\n"
- " show acl [id] : report avalaible acls or dump an acl's contents\n"
+ " show acl [id] : report available acls or dump an acl's contents\n"
" get acl : reports the patterns matching a sample for an ACL\n"
" add acl : add acl entry\n"
" del acl : delete acl entry\n"
" clear acl <id> : clear the content of this acl\n"
- " show map [id] : report avalaible maps or dump a map's contents\n"
+ " show map [id] : report available maps or dump a map's contents\n"
" get map : reports the keys and values matching a sample for a map\n"
" set map : modify map entry\n"
" add map : add map entry\n"
@@ -1175,7 +1175,7 @@
else
appctx->ctx.map.display_flags = PAT_REF_ACL;
- /* no parameter: display all map avalaible */
+ /* no parameter: display all map available */
if (!*args[2]) {
appctx->st2 = STAT_ST_INIT;
appctx->st0 = STAT_CLI_O_PATS;
@@ -5300,8 +5300,8 @@
/* Now, we start the browsing of the references lists.
* Note that the following call to LIST_ELEM return bad pointer. The only
- * avalaible field of this pointer is <list>. It is used with the function
- * pat_list_get_next() for retruning the first avalaible entry
+ * available field of this pointer is <list>. It is used with the function
+ * pat_list_get_next() for retruning the first available entry
*/
appctx->ctx.map.ref = LIST_ELEM(&pattern_reference, struct pat_ref *, list);
appctx->ctx.map.ref = pat_list_get_next(appctx->ctx.map.ref, &pattern_reference,