List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:September 30 2009 11:08pm
Subject:bzr push into mysql-5.1-bugteam branch (davi:3144 to 3145)
View as plain text  
 3145 Davi Arnaut	2009-09-30 [merge]
      Manual merge.

    modified:
      sql/sql_parse.cc
 3144 Davi Arnaut	2009-09-30 [merge]
      Manual merge.

    added:
      mysql-test/suite/federated/federated_debug-master.opt
      mysql-test/suite/federated/federated_debug.result
      mysql-test/suite/federated/federated_debug.test
    modified:
      mysql-test/suite/federated/my.cnf
      sql/slave.cc
      sql/sql_parse.cc
=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc	2009-09-30 22:25:06 +0000
+++ b/sql/sql_parse.cc	2009-09-30 23:06:08 +0000
@@ -1429,24 +1429,25 @@ bool dispatch_command(enum enum_server_c
       break;
     general_log_print(thd, command, NullS);
 #ifndef DBUG_OFF
-    DBUG_EXECUTE_IF("simulate_detached_thread_refresh",
-                    {
-                      /*
-                        Simulate a reload without a attached thread session.
-                        Provides a environment similar to that of when the
-                        server receives a SIGHUP signal and reloads caches
-                        and flushes tables.
-                      */
-                      bool res;
-                      my_pthread_setspecific_ptr(THR_THD, NULL);
-                      res= reload_acl_and_cache(NULL, options | REFRESH_FAST,
-                                                NULL, &not_used);
-                      my_pthread_setspecific_ptr(THR_THD, thd);
-                      if (!res)
-                        my_ok(thd);
-                      goto end;
-                    }
-                    );
+    bool debug_simulate= FALSE;
+    DBUG_EXECUTE_IF("simulate_detached_thread_refresh", debug_simulate= TRUE;);
+    if (debug_simulate)
+    {
+      /*
+        Simulate a reload without a attached thread session.
+        Provides a environment similar to that of when the
+        server receives a SIGHUP signal and reloads caches
+        and flushes tables.
+      */
+      bool res;
+      my_pthread_setspecific_ptr(THR_THD, NULL);
+      res= reload_acl_and_cache(NULL, options | REFRESH_FAST,
+                                NULL, &not_used);
+      my_pthread_setspecific_ptr(THR_THD, thd);
+      if (!res)
+        my_ok(thd);
+      break;
+    }
 #endif
     if (!reload_acl_and_cache(thd, options, NULL, &not_used))
       my_ok(thd);
@@ -1591,11 +1592,6 @@ bool dispatch_command(enum enum_server_c
     break;
   }
 
-  /* Break the switch for DBUG wrapped code. */
-#ifndef DBUG_OFF
-end:
-#endif
-
   /* report error issued during command execution */
   if (thd->killed_errno())
   {


Attachment: [text/bzr-bundle] bzr/davi.arnaut@sun.com-20090930230608-jajp0ho75184xpkg.bundle
Thread
bzr push into mysql-5.1-bugteam branch (davi:3144 to 3145)Davi Arnaut1 Oct