summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authormonty@tik.mysql.fi <>2002-04-12 21:35:46 +0300
committermonty@tik.mysql.fi <>2002-04-12 21:35:46 +0300
commit056175a1ceb182828fb0fb7e40feac10f09ff3a0 (patch)
tree0060cbed8a1f7a8adaca0a4dc2e74b3372e28361 /sql/net_serv.cc
parente857f561fd2fc2e544cba9508884c539ee789b05 (diff)
downloadmariadb-git-056175a1ceb182828fb0fb7e40feac10f09ff3a0.tar.gz
Update for BTREE keys in HEAP tables
Split handler->option_flag() to handler->table_flags() and handler->index_flags()
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r--sql/net_serv.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index 9884adf9b46..0d6e548a873 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -329,12 +329,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
-#ifdef HAVE_QUERY_CACHE
+#if defined(MYSQL_SERVER) && defined(HAVE_QUERY_CACHE)
if (net->query_cache_query != 0)
query_cache_insert(net, packet, len);
#endif
-#endif
if (net->error == 2)
DBUG_RETURN(-1); /* socket can't be used */
@@ -824,6 +822,5 @@ int net_request_file(NET* net, const char* fname)
tmp[0] = (char) 251; /* NULL_LENGTH */
end=strnmov(tmp+1,fname,sizeof(tmp)-2);
DBUG_RETURN(my_net_write(net,tmp,(uint) (end-tmp)) ||
- net_flush(net));
+ net_flush(net));
}
-