From dddc20d9d1eea5fd526a2082a43801fed304afe4 Mon Sep 17 00:00:00 2001 From: "monty@mashka.mysql.fi" <> Date: Tue, 23 Jul 2002 18:31:22 +0300 Subject: New SET syntax & system variables. Made a some new buffers thread specific and changeable. Resize of key_buffer. AUTO_COMMIT -> AUTOCOMMIT Fixed mutex bug in DROP DATABASE Fixed bug when using auto_increment as second part of a key where first part could include NULL. Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers. Don't write message to error log when slave reconnects becasue of timeout. Fixed possible update problem when using DELETE/UPDATE on small tables (In some cases we used index even if table scanning would be better) A lot of minior code cleanups --- sql/net_pkg.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'sql/net_pkg.cc') diff --git a/sql/net_pkg.cc b/sql/net_pkg.cc index f7c28d3d7fe..a8beecd5fb4 100644 --- a/sql/net_pkg.cc +++ b/sql/net_pkg.cc @@ -87,6 +87,7 @@ void send_warning(NET *net, uint sql_errno, const char *err) DBUG_VOID_RETURN; } + /* Write error package and flush to client It's a little too low level, but I don't want to allow another buffer @@ -369,3 +370,18 @@ net_store_data(String *packet, CONVERT *convert, const char *from) return convert->store(packet, from, length); return net_store_data(packet,from,length); } + +/* + Function called by my_net_init() to set some check variables +*/ + +extern "C" { +void my_net_local_init(NET *net) +{ + net->max_packet= (uint) global_system_variables.net_buffer_length; + net->read_timeout= (uint) global_system_variables.net_read_timeout; + net->write_timeout=(uint) global_system_variables.net_write_timeout; + net->max_packet_size= max(global_system_variables.net_buffer_length, + global_system_variables.max_allowed_packet); +} +} -- cgit v1.2.1