expire_logs_days returns a float, but is compared as int (l. 592)

Bug #1973793 reported by Sylvain Roche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Tuning Primer Script
New
Undecided
Unassigned

Bug Description

mysql_variable \'expire_logs_days\' expire_logs_days
returns a float (e.g. 4.00000)

later compared to 0 in
if [ "$expire_logs_days" -eq 0 ] ; then

/usr/local/bin/tuning-primer.sh: ligne 592 : [: 4.000000 : nombre entier attendu comme expression

earlier versions use to crash here, but we were used to fix this with a flot2int call
this function has been removed in current version, which fortunately does not crash anymore here

thanks a lot for the great work on tuning_primer.sh

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.