summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-09 11:29:27 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-06-09 11:29:27 +0300
commit5932330839daa3c211b7db81d0ce1b50b8b928f8 (patch)
tree19f359486b756ba2484cb3d73d7ab22800675688 /sql/net_serv.cc
parent1de997d849e718a7080cf5eab6f8715beada8abf (diff)
parent257363e6c41d71c0ba3ce870614dfed1ff47676f (diff)
downloadmariadb-git-5932330839daa3c211b7db81d0ce1b50b8b928f8.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 c55c4246750..38ab3a70136 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -902,7 +902,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],