Use "WHERE id BETWEEN 1 and 100" rather than "WHERE id BETWEEN 1 AND
1+99" in generated range SQL queries. I.e. calculate range bounds on the
client, there is no reason to push it to the server.
Don't use the hard-coded libmysqlclient_r name for the client library,
because it is obsolete in 5.7. Instead, if the client library path is
specified explicitly with --with-mysql-libs, try both libmysqlclient_r
and libmysqlclient in that order.
Call aclocal after libtoolize, as otherwise `make` will remake
aclocal.m4 and configure due to aclocal.m4 being older than libtool
macros installed to m4/ by libtoolize.
The SB_ATTRIBUTE_FORMAT() now expands to __attribute__((format...) on
platforms that support it. Fixed a number of inconsistencies between
format string and arguments revealed by the format attribute.
Use the binary prefixes defined in IEC 80000-13.
Ki, kibi = 2^10
Mi, mebi = 2^20
Use B for bytes.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Use the binary prefixes defined in IEC 80000-13.
Ki, kibi = 2^10
Mi, mebi = 2^20
Gi, gibi = 2^30
Ti, tebi = 2^40
Use B for Byte, b for bit.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Use the binary prefixes defined in IEC 80000-13.
Ki, kibi = 2^10
Mi, mebi = 2^20
Gi, gibi = 2^30
Ti, tebi = 2^40
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
A barrier is now used by worker and background threads and the main
thread to make sure all threads have initialized before executing
events. If some threads fail to initialize within a timeout (hard-coded
to 30 seconds for now), bail out with an error message.
Allow --mysql-port to be a list rather than just a single value similar
to --mysql-host. When both --mysql-host and --mysql-port are specified
as lists of values, when creating connections first iterate on ports
with the current host, then move to the next host in the list.