1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Speed up things if mysql.proc doesn't exists

sql/mysql_priv.h:
  Added mysql_proc_table_exists
sql/opt_range.cc:
  Simple fix
sql/sql_acl.cc:
  Added mysql_proc_table_exists
sql/sql_lex.cc:
  Simple optimization
This commit is contained in:
unknown
2004-03-26 13:14:40 +02:00
parent d4898d174c
commit bfa269c27d
5 changed files with 17 additions and 3 deletions

View File

@ -140,7 +140,6 @@ my_bool acl_init(THD *org_thd, bool dont_read_acl_tables)
MYSQL_LOCK *lock;
my_bool return_val=1;
bool check_no_resolve= specialflag & SPECIAL_NO_RESOLVE;
DBUG_ENTER("acl_init");
if (!acl_cache)
@ -153,6 +152,7 @@ my_bool acl_init(THD *org_thd, bool dont_read_acl_tables)
}
priv_version++; /* Privileges updated */
mysql_proc_table_exists= 1; // Assume mysql.proc exists
/*
To be able to run this from boot, we allocate a temporary THD