diff options
author | sasha@mysql.sashanet.com <> | 2001-10-13 09:28:35 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-10-13 09:28:35 -0600 |
commit | a74811e72b102b0554d1cc081f02fde7e0ca3928 (patch) | |
tree | c4dd5da34820e3ec8484a4929bf1467d6492d92a /client/mysqltest.c | |
parent | 2d3f96b483f3faef645c8506b8b065a2bbeddbf1 (diff) | |
download | mariadb-git-a74811e72b102b0554d1cc081f02fde7e0ca3928.tar.gz |
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
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r-- | client/mysqltest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 1bf3ab75aed..d1d25a499ce 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -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); } |