Typo in mysqltuner causes AriaDB analysis failure with error "Use of uninitialized value $mycalc{"total_aria_indexes"}"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysqltuner (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
~$ lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
:~$ apt-cache policy mysqltuner
mysqltuner:
Installed: 1.6.0-1
Candidate: 1.6.0-1
Version table:
*** 1.6.0-1 500
500 http://
100 /var/lib/
Expected output:
-------- AriaDB Metrics -------
[--] AriaDB is enabled.
[OK] Aria pagecache size / total Aria indexes: 128.0M/358.6M
[OK] Aria pagecache hit rate: 97.1% (31M cached / 930K reads)
Actual output:
-------- AriaDB Metrics -------
[--] AriaDB is enabled.
Use of uninitialized value $mycalc{
at /usr/bin/mysqltuner line 2742 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you
the name of the variable (if any) that was undefined. In some cases
it cannot do this, so it also tells you what operation you used the
undefined value in. Note, however, that perl optimizes your program
and the operation displayed in the warning may not necessarily appear
literally in your program. For example, "that $foo" is usually
optimized into "that " . $foo, and the warning will refer to the
concatenation (.) operator, even though there is no . in
your program.
Use of uninitialized value $mycalc{
/usr/bin/
[!!] None of your Aria tables are indexed - add indexes immediately
This error is due to a typo on line 1912 which reads:
The correct line is as follows:
Fixing the typo fixes the AriaDB analysis by mysqltuner.