summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <miguel@light.local>2002-01-09 05:38:48 -0200
committerunknown <miguel@light.local>2002-01-09 05:38:48 -0200
commit87ec5559477643e2574872fca93a5b4898868de0 (patch)
tree0f9e1ac4b6b7ebc9cba483f4ac9ddf307c12d5c7 /sql/sql_cache.cc
parent23a6f068854fefd2435d564f267776cef9ff0da1 (diff)
downloadmariadb-git-87ec5559477643e2574872fca93a5b4898868de0.tar.gz
Win32 Embedded Server Changes
libmysql/libmysql.def: For to have the same order of the 3.23.XX stuff libmysqld/lib_load.cc: For to have the file extension for VC++ libmysqld/lib_sql.cc: The VC++ compiler returns duplication define from net_serv.cc. If the same happens with Unix then those lines should be removed. VC++ file extension. sql/mysqld.cc: Changes for Win32 Embedded Server. sql/net_serv.cc: Sanja Fixes. sql/sql_cache.cc: To avoid the crash on Win9x
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 391fdc1abf4..759aeceea76 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1167,6 +1167,11 @@ void Query_cache::pack(ulong join_limit, uint iteration_limit)
void Query_cache::destroy()
{
+ if ( !initialized )
+ {
+ DBUG_PRINT("qcache", ("Query Cache not initialized"));
+ return;
+ }
DBUG_ENTER("Query_cache::destroy");
free_cache(1);
pthread_mutex_destroy(&structure_guard_mutex);