yoshinorim / mha4mysql-node

Development tree of Master High Availability Manager and tools for MySQL (MHA), Node (MySQL Server) part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
402 stars 202 forks source link

purge_relay_logs: Redundant argument in sprintf at NodeUtil.pm line 195 #35

Open wtip opened 5 years ago

wtip commented 5 years ago

When running purge_relay_logs on a Ubuntu 16.04 system with perl5 (revision 5 version 22 subversion 1) I get Redundant argument in sprintf at /usr/share/perl5/MHA/NodeUtil.pm line 195.

Paul-Pech commented 5 years ago

This affects at least NodeUtil.pm and BinlogMananger.pm.

It can be circumvented by adding the following line to both files:

use warnings FATAL => 'all'; <------- this line is already there, don't touch it no warnings qw( redundant ); <------- no warnings for redundant arguments