Fix to bug 681: http://bugs.mariadb.com/show_bug.cgi?id=681
Added casts to floating point versions of values when doing divisions.
This commit is contained in:
parent
6adccb3c17
commit
468ce72c18
@ -4692,7 +4692,7 @@ static bool have_enough_servers(
|
||||
"would be required.",
|
||||
router->service->name,
|
||||
(*p_rses)->rses_config.rw_max_slave_conn_percent,
|
||||
min_nsrv/(router_nsrv/100))));
|
||||
(double)min_nsrv/((double)router_nsrv/100.0))));
|
||||
}
|
||||
}
|
||||
free(*p_rses);
|
||||
|
Loading…
x
Reference in New Issue
Block a user