summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-09-12 03:02:33 +0300
committermonty@donna.mysql.com <>2000-09-12 03:02:33 +0300
commit2776500c220c92bb78df03513cc3dd33588f40e5 (patch)
tree051686baf31e5363765879f2437ada3abea6b71b /sql/sql_udf.cc
parent497007e2bd9cb127d54a4fdb02253301f404ce7f (diff)
downloadmariadb-git-2776500c220c92bb78df03513cc3dd33588f40e5.tar.gz
Update to new root alloc, OPTIMIZE TABLE and some other changes
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index e5508dafe37..75d796faf5e 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -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;
}