summaryrefslogtreecommitdiff
path: root/sql/net_pkg.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-04-02 17:54:57 +0300
committermonty@hundin.mysql.fi <>2002-04-02 17:54:57 +0300
commitd80ebc17d6e89cac37bedb198b073dddade9c61b (patch)
tree0918e7f417ac64ab19af6ea441c12c97e897c1b9 /sql/net_pkg.cc
parent591bda67487d0215f4fd486dcca8ea703c626048 (diff)
downloadmariadb-git-d80ebc17d6e89cac37bedb198b073dddade9c61b.tar.gz
Cleanups
Don't use DBUG library for struct st_my_thread_var to make code less complicated.
Diffstat (limited to 'sql/net_pkg.cc')
-rw-r--r--sql/net_pkg.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/net_pkg.cc b/sql/net_pkg.cc
index 9e52e4580e6..1ab3e18424f 100644
--- a/sql/net_pkg.cc
+++ b/sql/net_pkg.cc
@@ -108,10 +108,12 @@ net_printf(NET *net, uint errcode, ...)
thd->query_error = 1; // if we are here, something is wrong :-)
query_cache_abort(net); // Safety
va_start(args,errcode);
- // Sasha: this is needed to make net_printf() work with 0 argument for
- // errorcode and use the argument after that as the format string. This
- // is usefull for rare errors that are not worth the hassle to put in
- // errmsg.sys, but at the same time, the message is not fixed text
+ /*
+ The following is needed to make net_printf() work with 0 argument for
+ errorcode and use the argument after that as the format string. This
+ is useful for rare errors that are not worth the hassle to put in
+ errmsg.sys, but at the same time, the message is not fixed text
+ */
format=errcode ? ER(errcode) : va_arg(args,char*);
offset= net->return_errno ? 2 : 0;
text_pos=(char*) net->buff+head_length+offset+1;