List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:June 7 2010 10:03am
Subject:bzr commit into mysql-5.1-bugteam branch (Georgi.Kodinov:3418)
View as plain text  
#At file:///Users/kgeorge/mysql/work/fix-5.1-bugteam/ based on revid:ramil@stripped

 3418 Georgi Kodinov	2010-06-07 [merge]
      merge

    modified:
      sql/sql_parse.cc
=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc	2010-06-04 14:10:22 +0000
+++ b/sql/sql_parse.cc	2010-06-07 10:01:54 +0000
@@ -1510,8 +1510,11 @@ bool dispatch_command(enum enum_server_c
       SHUTDOWN_DEFAULT is 0. If client is >= 4.1.3, the shutdown level is in
       packet[0].
     */
-    enum mysql_enum_shutdown_level level=
-      (enum mysql_enum_shutdown_level) (uchar) packet[0];
+    enum mysql_enum_shutdown_level level;
+    if (!thd->is_valid_time())
+      level= SHUTDOWN_DEFAULT;
+    else
+      level= (enum mysql_enum_shutdown_level) (uchar) packet[0];
     if (level == SHUTDOWN_DEFAULT)
       level= SHUTDOWN_WAIT_ALL_BUFFERS; // soon default will be configurable
     else if (level != SHUTDOWN_WAIT_ALL_BUFFERS)


Attachment: [text/bzr-bundle] bzr/georgi.kodinov@oracle.com-20100607100154-bo8dvb5ghmch15zt.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (Georgi.Kodinov:3418) Georgi Kodinov7 Jun