From 0b4b38b6222d95ca6c118df7bd4cdf8f1a275bb3 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Mar 2002 22:55:08 +0200 Subject: added building without query cache configure.in: new configure parameter (now only for embeded server) include/my_global.h: now query cache always included in server, because of problrms with test suit mysql-test/r/flush.result: removed double testing mysql-test/t/flush.test: removed double testing mysql-test/t/grant_cache.test: now it is only memo about query cache mysql-test/t/query_cache.test: now it is only memo about query cache --- sql/sql_class.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sql/sql_class.cc') diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 810342c2bc3..fdb7825e344 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -122,10 +122,14 @@ THD::THD():user_time(0),fatal_error(0),last_insert_id_used(0), server_id = ::server_id; slave_net = 0; log_pos = 0; - server_status=SERVER_STATUS_AUTOCOMMIT; + server_status= SERVER_STATUS_AUTOCOMMIT; update_lock_default= low_priority_updates ? TL_WRITE_LOW_PRIORITY : TL_WRITE; - options=thd_startup_options; - query_cache_type = (byte) query_cache_startup_type; + options= thd_startup_options; +#ifdef HAVE_QUERY_CACHE + query_cache_type= (byte) query_cache_startup_type; +#else + query_cache_type= 0; //Safety +#endif sql_mode=(uint) opt_sql_mode; inactive_timeout=net_wait_timeout; open_options=ha_open_options; -- cgit v1.2.1