diff options
author | unknown <monty@hundin.mysql.fi> | 2002-01-06 14:21:43 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-01-06 14:21:43 +0200 |
commit | e8da7ea09ea7ccde96becbd04364df8c4e8424bd (patch) | |
tree | 5667a1d9a35f8456aba4a97765894a5b225d9e49 /sql | |
parent | e9b750d1a6a131b60453c8dd4efef9d572bae476 (diff) | |
download | mariadb-git-e8da7ea09ea7ccde96becbd04364df8c4e8424bd.tar.gz |
Make query cache code independent of the MYSQL_SERVER define.
This fixes the query cache problem on windows.
sql/net_serv.cc:
Make query cache code independent of the MYSQL_SERVER define.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/net_serv.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 9a8d6b5e967..22d89386516 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -54,6 +54,8 @@ ulong max_allowed_packet=65536; extern ulong net_read_timeout,net_write_timeout; extern uint test_flags; +#define USE_QUERY_CACHE +extern void query_cache_insert(NET *net, const char *packet, ulong length); #else ulong max_allowed_packet=16*1024*1024L; ulong net_read_timeout= NET_READ_TIMEOUT; @@ -72,8 +74,6 @@ void sql_print_error(const char *format,...); extern ulong mysqld_net_retry_count; extern ulong bytes_sent, bytes_received; extern pthread_mutex_t LOCK_bytes_sent , LOCK_bytes_received; - -extern void query_cache_insert(NET *net, const char *packet, ulong length); #else #undef statistic_add #define statistic_add(A,B,C) @@ -329,7 +329,7 @@ net_real_write(NET *net,const char *packet,ulong len) my_bool net_blocking = vio_is_blocking(net->vio); DBUG_ENTER("net_real_write"); -#ifdef MYSQL_SERVER +#ifdef USE_QUERY_CACHE if (net->query_cache_query != 0) query_cache_insert(net, packet, len); #endif |