summaryrefslogtreecommitdiff
path: root/sql/sp_cache.cc
diff options
context:
space:
mode:
authorpem@mysql.comhem.se <>2004-03-22 14:44:41 +0100
committerpem@mysql.comhem.se <>2004-03-22 14:44:41 +0100
commit5476eb0709c3a109fc47e1f7434ff196c5ec366b (patch)
treee2093fe206e23fb00b58e65431a5409e74f2751e /sql/sp_cache.cc
parent13987057f64b97776e9491447186bebc54ee1439 (diff)
downloadmariadb-git-5476eb0709c3a109fc47e1f7434ff196c5ec366b.tar.gz
WL#1366: Use the schema (db) associated with an SP.
Phase 4 (final): Remove associated stored procedures when a database is dropped.
Diffstat (limited to 'sql/sp_cache.cc')
-rw-r--r--sql/sp_cache.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sp_cache.cc b/sql/sp_cache.cc
index e13fb2695e7..056ac6d7e96 100644
--- a/sql/sp_cache.cc
+++ b/sql/sp_cache.cc
@@ -115,6 +115,13 @@ sp_cache_remove(sp_cache **cp, sp_name *name)
return found;
}
+void
+sp_cache_invalidate()
+{
+ pthread_mutex_lock(&Cversion_lock); // LOCK
+ Cversion++;
+ pthread_mutex_unlock(&Cversion_lock); // UNLOCK
+}
static byte *
hash_get_key_for_sp_head(const byte *ptr, uint *plen,