diff options
author | unknown <sasha@mysql.sashanet.com> | 2002-03-30 12:36:05 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2002-03-30 12:36:05 -0700 |
commit | 5449b03bc83cc6917e47c4f50a630a189a595c3d (patch) | |
tree | ad398b75895850d75ea225d34b9dc052ac6d9f37 /sql/net_pkg.cc | |
parent | ef261914d3fdaaf25f1415b8625cc9ff89f9266a (diff) | |
download | mariadb-git-5449b03bc83cc6917e47c4f50a630a189a595c3d.tar.gz |
replication updates. This changeset seems to be working fine on test systems.
If no problems are discovered in the next week, this will make the replication
code ready for 4.0.2 release.
dbug/dbug.c:
cleanup of my previous fix
sql/mysqld.cc:
fixed a REALLY NASTY BUG - slave threads were being launched before
initialization of global thread keys. Thus if the slave thread was slow
to start everything worked fine, but if it started quickly, we would get
into trouble using the unitinialized keys
sql/net_pkg.cc:
make net_printf() work with 0 error code taking the third argument as
format string in that case
sql/slave.cc:
misc fix-ups and debugging instrumentations
sql/slave.h:
added skip_log_purge member
sql/sql_class.cc:
debugging instrumentation to track down random memory corruption
sql/sql_class.h:
added debugging sentry to THD to track down memory corruption
sql/sql_repl.cc:
fixed bugs in CHANGE MASTER
Diffstat (limited to 'sql/net_pkg.cc')
-rw-r--r-- | sql/net_pkg.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/net_pkg.cc b/sql/net_pkg.cc index 64c1b07a493..9e52e4580e6 100644 --- a/sql/net_pkg.cc +++ b/sql/net_pkg.cc @@ -108,7 +108,11 @@ 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); - format=ER(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 + format=errcode ? ER(errcode) : va_arg(args,char*); offset= net->return_errno ? 2 : 0; text_pos=(char*) net->buff+head_length+offset+1; (void) vsprintf(my_const_cast(char*) (text_pos),format,args); |