diff options
author | monty@hundin.mysql.fi <> | 2001-12-02 14:34:01 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-12-02 14:34:01 +0200 |
commit | 1d26537da53fee228b2f9d974d4806a06b76e33e (patch) | |
tree | 8e30a64d5c7aaa0ba8554c4c316cc9b76a6724ca /sql/net_serv.cc | |
parent | 8a8617075a9e6ae3537bb8d81c8f4ab62e77fa44 (diff) | |
download | mariadb-git-1d26537da53fee228b2f9d974d4806a06b76e33e.tar.gz |
Query cache.
Remove some warnings
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 5e002a0f63e..ac622bca254 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -94,6 +94,7 @@ inline int local_thr_alarm(my_bool *A,int B __attribute__((unused)),ALARM *C __a #ifdef MYSQL_SERVER 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) @@ -125,6 +126,7 @@ int my_net_init(NET *net, Vio* vio) net->compress=0; net->reading_or_writing=0; net->where_b = net->remain_in_buf=0; net->last_errno=0; + net->query_cache_query=0; if (vio != 0) /* If real connection */ { @@ -341,6 +343,10 @@ 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 + query_cache_insert(net, packet, len); +#endif + if (net->error == 2) DBUG_RETURN(-1); /* socket can't be used */ |