List:Commits« Previous MessageNext Message »
From:He Zhenxing Date:June 28 2008 6:49am
Subject:bzr commit into mysql-6.0-semi-sync-1.0 branch (hezx:2636) WL#4398
View as plain text  
#At file:///media/sda3/work/mysql/bzrwork/semisync/mysql-6.0-semi-sync-1.0/

 2636 He Zhenxing	2008-06-28
      WL#4398 fix after push
modified:
  sql/Makefile.am
  sql/handler.cc
  sql/sql_parse.cc

per-file messages:
  sql/Makefile.am
    Add replication.h to noinst_HEADERS
  sql/handler.cc
    Move calling commit/rolback hooks into ha_autocommit_or_callback
  sql/sql_parse.cc
    Move calling commit/rollback hooks into ha_autocommit_or_callback
=== modified file 'sql/Makefile.am'
--- a/sql/Makefile.am	2008-06-26 14:22:39 +0000
+++ b/sql/Makefile.am	2008-06-28 06:48:57 +0000
@@ -89,7 +89,7 @@ noinst_HEADERS =	item.h item_func.h item
 			sql_partition.h partition_info.h partition_element.h \
 			probes.h sql_audit.h \
 			contributors.h sql_servers.h ddl_blocker.h si_objects.h \
-			rpl_handler.h
+			rpl_handler.h replication.h
 
 mysqld_SOURCES =	sql_lex.cc sql_handler.cc sql_partition.cc \
 			item.cc item_sum.cc item_buff.cc item_func.cc \

=== modified file 'sql/handler.cc'
--- a/sql/handler.cc	2008-06-26 14:22:39 +0000
+++ b/sql/handler.cc	2008-06-28 06:48:57 +0000
@@ -1307,7 +1307,14 @@ int ha_autocommit_or_rollback(THD *thd, 
 
     thd->variables.tx_isolation=thd->session_tx_isolation;
   }
+  else
 #endif
+  {
+    if (!thd->is_error())
+      RUN_HOOK(transaction, after_commit, (thd, 0));
+    else
+      RUN_HOOK(transaction, after_rollback, (thd, 0));
+  }
   DBUG_RETURN(error);
 }
 

=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc	2008-06-26 14:22:39 +0000
+++ b/sql/sql_parse.cc	2008-06-28 06:48:57 +0000
@@ -1396,17 +1396,7 @@ bool dispatch_command(enum enum_server_c
 
   /* If commit fails, we should be able to reset the OK status. */
   thd->main_da.can_overwrite_status= TRUE;
-  if (thd->transaction.stmt.ha_list)
-  {
-    ha_autocommit_or_rollback(thd, thd->is_error());
-  }
-  else
-  {
-    if (!thd->is_error())
-      RUN_HOOK(transaction, after_commit, (thd, 0));
-    else
-      RUN_HOOK(transaction, after_rollback, (thd, 0));
-  }
+  ha_autocommit_or_rollback(thd, thd->is_error());
   thd->main_da.can_overwrite_status= FALSE;
 
   thd->transaction.stmt.reset();

Thread
bzr commit into mysql-6.0-semi-sync-1.0 branch (hezx:2636) WL#4398He Zhenxing28 Jun