diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-02-27 11:52:20 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-10 19:24:23 +0100 |
commit | c1c5222caed889169fab01612b335ef8b5f56ba5 (patch) | |
tree | 5a51707f5e35c4bd3a8cbccc4fd08a9fd67f6914 /sql/sql_udf.cc | |
parent | 7af733a5a2cb7f79ffb5ff0129cad6db6f3cc359 (diff) | |
download | mariadb-git-c1c5222caed889169fab01612b335ef8b5f56ba5.tar.gz |
cleanup: PSI key is *always* the first argument
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 38328c91db3..4da85de7852 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -167,8 +167,8 @@ void udf_init() init_sql_alloc(key_memory_udf_mem, &mem, UDF_ALLOC_BLOCK_SIZE, 0, MYF(0)); THD *new_thd = new THD(0); if (!new_thd || - my_hash_init(&udf_hash,system_charset_info,32,0,0,get_hash_key, NULL, 0, - key_memory_udf_mem)) + my_hash_init(key_memory_udf_mem, + &udf_hash,system_charset_info,32,0,0,get_hash_key, NULL, 0)) { sql_print_error("Can't allocate memory for udf structures"); my_hash_free(&udf_hash); |