Commit e1e3293d authored by Georgi Kodinov's avatar Georgi Kodinov

merge

parents 44fc4b8b df088b8d
...@@ -1510,8 +1510,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd, ...@@ -1510,8 +1510,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
SHUTDOWN_DEFAULT is 0. If client is >= 4.1.3, the shutdown level is in SHUTDOWN_DEFAULT is 0. If client is >= 4.1.3, the shutdown level is in
packet[0]. packet[0].
*/ */
enum mysql_enum_shutdown_level level= enum mysql_enum_shutdown_level level;
(enum mysql_enum_shutdown_level) (uchar) packet[0]; if (!thd->is_valid_time())
level= SHUTDOWN_DEFAULT;
else
level= (enum mysql_enum_shutdown_level) (uchar) packet[0];
if (level == SHUTDOWN_DEFAULT) if (level == SHUTDOWN_DEFAULT)
level= SHUTDOWN_WAIT_ALL_BUFFERS; // soon default will be configurable level= SHUTDOWN_WAIT_ALL_BUFFERS; // soon default will be configurable
else if (level != SHUTDOWN_WAIT_ALL_BUFFERS) else if (level != SHUTDOWN_WAIT_ALL_BUFFERS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment