mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
64-bit portability fixes in network I/O
use $MAX_TABLES mysqltest variable to make join test portable make test now works with the manager on IA64 Linux client/mysqltest.c: added MAX_TABLES variable libmysql/libmysql.c: portability fixes for 64-bit systems mysql-test/mysql-test-run.sh: fixed bug - wrong values of -display in xterm in gdb mode mysql-test/r/join.result: make test work on both 32-bit and 64-bit systems mysql-test/t/join.test: make test work on both 32-bit and 64-bit systems sql/mini_client.cc: 64-bit portability fixes sql/mini_client.h: 64-bit portability fixes sql/slave.cc: 64-bit portability fixes tools/mysqlmanager.c: 64-bit portability fixes
This commit is contained in:
parent
a6c5867683
commit
5c1dbfe6a7
9 changed files with 80 additions and 54 deletions
|
|
@ -2158,12 +2158,15 @@ static void var_from_env(const char* name, const char* def_val)
|
|||
|
||||
static void init_var_hash()
|
||||
{
|
||||
VAR* v;
|
||||
if (hash_init(&var_hash, 1024, 0, 0, get_var_key, var_free, MYF(0)))
|
||||
die("Variable hash initialization failed");
|
||||
var_from_env("MASTER_MYPORT", "9306");
|
||||
var_from_env("SLAVE_MYPORT", "9307");
|
||||
var_from_env("MYSQL_TEST_DIR", "/tmp");
|
||||
var_from_env("BIG_TEST", opt_big_test ? "1" : "0");
|
||||
v=var_init(0,"MAX_TABLES", 0, (sizeof(ulong) == 4) ? "31" : "63",0);
|
||||
hash_insert(&var_hash, (byte*)v);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue