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
398 stars 198 forks source link

Fix redundant argument error on sprintf in parse_mysql_major_version() #23

Closed gcs-github closed 6 years ago

gcs-github commented 8 years ago

This small patch fixes an error I've been encountering while running MHA with Perl 5.22.

Perl 5.22.x doesn't ignore extra arguments in sprintf anymore and instead throws an error if less formats are available than variables to be transformed into them.

It's probably not the most elegant way to do this, so please feel free to either adapt this code to your liking or let me know how you would like me to change my patch.

Best,

– Guillaume Ceccarelli