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/item_create.cc | |
parent | 7af733a5a2cb7f79ffb5ff0129cad6db6f3cc359 (diff) | |
download | mariadb-git-c1c5222caed889169fab01612b335ef8b5f56ba5.tar.gz |
cleanup: PSI key is *always* the first argument
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index e437b3fc724..edf44fc3cd3 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -5617,14 +5617,9 @@ int item_create_init() #ifdef HAVE_SPATIAL count+= native_func_registry_array_geom.count(); #endif - if (my_hash_init(& native_functions_hash, - system_charset_info, - (ulong) count, - 0, - 0, - (my_hash_get_key) get_native_fct_hash_key, - NULL, /* Nothing to free */ - MYF(0), key_memory_native_functions)) + if (my_hash_init(key_memory_native_functions, & native_functions_hash, + system_charset_info, (ulong) count, 0, 0, (my_hash_get_key) + get_native_fct_hash_key, NULL, MYF(0))) DBUG_RETURN(1); if (native_func_registry_array.append_to_hash(&native_functions_hash)) |