1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Update to new root alloc, OPTIMIZE TABLE and some other changes

This commit is contained in:
monty@donna.mysql.com
2000-09-12 03:02:33 +03:00
parent 497007e2bd
commit 2776500c22
49 changed files with 39374 additions and 487 deletions

View File

@ -107,14 +107,14 @@ void udf_init()
pthread_mutex_init(&THR_LOCK_udf,NULL);
init_sql_alloc(&mem, 1024);
init_sql_alloc(&mem, 1024,0);
THD *new_thd = new THD;
if (!new_thd ||
hash_init(&udf_hash,32,0,0,get_hash_key, NULL, HASH_CASE_INSENSITIVE))
{
sql_print_error("Can't allocate memory for udf structures");
hash_free(&udf_hash);
free_root(&mem);
free_root(&mem,MYF(0));
DBUG_VOID_RETURN;
}
initialized = 1;
@ -208,7 +208,7 @@ void udf_free()
dlclose(udf->dlhandle);
}
hash_free(&udf_hash);
free_root(&mem);
free_root(&mem,MYF(0));
DBUG_VOID_RETURN;
}