1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-03 05:41:09 +03:00

Added back sql-bench directory, so that one can more easily run benchmarks on a server and add new benchmarks for new optimizations

Fixed memory leak in _db_set() (Bug#24497 Valgrind warning: get_one_option)
Don't call net_clear() on COM_QUIT. This avoids a warning from net_clear() after shutdown: "skipped ## bytes from file"
BUG#21428: skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
This commit is contained in:
monty@mysql.com/narttu.mysql.fi
2006-11-29 22:51:09 +02:00
parent 93f246d4c1
commit 23263db66e
109 changed files with 66386 additions and 130 deletions

View File

@@ -2093,7 +2093,12 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
#ifdef __WIN__
sleep(1); // must wait after eof()
#endif
send_eof(thd); // This is for 'quit request'
/*
The client is next going to send a COM_QUIT request (as part of
mysql_close()). Make the life simpler for the client by sending
the response for the coming COM_QUIT in advance
*/
send_eof(thd);
close_connection(thd, 0, 1);
close_thread_tables(thd); // Free before kill
kill_mysql();