mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
small cleanup: udf_init()/udf_free() calls
This commit is contained in:
@ -142,7 +142,7 @@ void udf_init()
|
||||
DBUG_ENTER("ufd_init");
|
||||
char db[]= "mysql"; /* A subject to casednstr, can't be constant */
|
||||
|
||||
if (initialized)
|
||||
if (initialized || opt_noacl)
|
||||
DBUG_VOID_RETURN;
|
||||
|
||||
#ifdef HAVE_PSI_INTERFACE
|
||||
@ -267,6 +267,8 @@ void udf_free()
|
||||
{
|
||||
/* close all shared libraries */
|
||||
DBUG_ENTER("udf_free");
|
||||
if (opt_noacl)
|
||||
DBUG_VOID_RETURN;
|
||||
for (uint idx=0 ; idx < udf_hash.records ; idx++)
|
||||
{
|
||||
udf_func *udf=(udf_func*) my_hash_element(&udf_hash,idx);
|
||||
|
Reference in New Issue
Block a user