summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-09 11:41:24 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-09 11:41:24 +0300
commit344127f371de209bf8a0cb1a0cb9748378ea9bb6 (patch)
tree2b69f5dc4ed6a2fca5bff6279464516aad56386b /sql/net_serv.cc
parent60153dd36e2a79150565635d1370ed64df7cc07d (diff)
parent04f4786c081d4aa09ae91692bc494c8fd3cc3430 (diff)
downloadmariadb-git-344127f371de209bf8a0cb1a0cb9748378ea9bb6.tar.gz
merge
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r--sql/net_serv.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index a29f0e394dc..918798529de 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -920,7 +920,13 @@ my_real_read(NET *net, size_t *complen)
("Packets out of order (Found: %d, expected %u)",
(int) net->buff[net->where_b + 3],
net->pkt_nr));
-#ifdef EXTRA_DEBUG
+ /*
+ We don't make noise server side, since the client is expected
+ to break the protocol for e.g. --send LOAD DATA .. LOCAL where
+ the server expects the client to send a file, but the client
+ may reply with a new command instead.
+ */
+#if defined (EXTRA_DEBUG) && !defined (MYSQL_SERVER)
fflush(stdout);
fprintf(stderr,"Error: Packets out of order (Found: %d, expected %d)\n",
(int) net->buff[net->where_b + 3],