pt-config-diff doesn't handle empty values correctly (secure_file_priv)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Basically, the variable is set to empty in the config file, but pt-config-diff "defaults" it to "ON" and this leads to a difference in the configuration :
# ./pt-config-diff --version
pt-config-diff 2.2.20
# pt-config-diff /etc/mysql/my.cnf localhost
2 config differences
Variable /etc/mysql/my.cnf <server_name>
=======
secure_file_priv ON
# grep secure_file_priv /etc/mysql/my.cnf
secure_file_priv = ""
mysql> show variables like 'secure_file_priv';
+------
| Variable_name | Value |
+------
| secure_file_priv | |
+------
1 row in set (0.00 sec)
It's probably in the "_mimic_
If compared by logging in to the server, the correct view as expected: 3.206,u= ptuser, p=ptpass | grep secure_file mysql-files/
[root@pxc2 ~]# pt-config-diff h=localhost,u=root h=10.0.
secure_file_priv /var/lib/
If compared directly from file, the tool defaults it to ON: 3.206,u= ptuser, p=ptpass | grep secure_file mysql-files/
[root@pxc2 ~]# pt-config-diff /etc/my.cnf h=10.0.
secure_file_priv ON /var/lib/