diff options
author | unknown <sergefp@mysql.com> | 2005-08-10 21:17:02 +0000 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-08-10 21:17:02 +0000 |
commit | 6b9ec78be00d37b91d4de8564bc0103d83ddfb26 (patch) | |
tree | 5dab1a0ca73f1e4942bf33d79a0b027bc008ab28 /sql/sql_parse.cc | |
parent | 08cadd816e7fd92f6f56c3ba621aa81d47954fca (diff) | |
download | mariadb-git-6b9ec78be00d37b91d4de8564bc0103d83ddfb26.tar.gz |
BUG#12228: Post review fixes: Added test case, code cleanup.
mysql-test/r/sp-threads.result:
Testcase for BUG#12228
mysql-test/t/sp-threads.test:
Testcase for BUG#12228
sql/sp_cache.cc:
BUG#12228: Post-review fixes: small code cleanup
sql/sp_cache.h:
BUG#12228: Post-review fixes: fixed the comment
sql/sql_parse.cc:
BUG#12228: Post-review fixes: in mysql_parse, flush obsolete SPs from the caches only if
the query hasn't been handled by the query cache.
sql/sql_prepare.cc:
BUG#12228: Post-review fixes: in mysql_stmt_prepare/execute, flush SP caches
"closer to the execution"
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 00463dc0a3b..1a3f6f6f656 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -5347,12 +5347,12 @@ void mysql_init_multi_delete(LEX *lex) void mysql_parse(THD *thd, char *inBuf, uint length) { DBUG_ENTER("mysql_parse"); - sp_cache_flush_obsolete(&thd->sp_proc_cache); - sp_cache_flush_obsolete(&thd->sp_func_cache); mysql_init_query(thd, (uchar*) inBuf, length); if (query_cache_send_result_to_client(thd, inBuf, length) <= 0) { LEX *lex= thd->lex; + sp_cache_flush_obsolete(&thd->sp_proc_cache); + sp_cache_flush_obsolete(&thd->sp_func_cache); if (!yyparse((void *)thd) && ! thd->is_fatal_error) { #ifndef NO_EMBEDDED_ACCESS_CHECKS |