diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-12-03 21:37:38 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-12-03 21:37:38 +0300 |
commit | c43f894c51bb7b091dd668f069fb5e5e44dcb0b1 (patch) | |
tree | e72864841720da65102a5acd0ba5cc908cc8dec8 /sql/rpl_injector.cc | |
parent | 3a8a7509199b15c26a88bab5ed97ec093a29f387 (diff) | |
download | mariadb-git-c43f894c51bb7b091dd668f069fb5e5e44dcb0b1.tar.gz |
Backport of:
------------------------------------------------------------
revno: 2630.22.3
committer: Davi Arnaut <Davi.Arnaut@Sun.COM>
branch nick: 4284-6.0
timestamp: Thu 2008-08-07 22:33:43 -0300
message:
WL#4284: Transactional DDL locking
Make transaction management more modular through a new interface.
The overall objective of this change is to provide groundwork
for the design of transactional DDL locking by cleaning up the
transaction high level API to better distinguish operations implicit
and explicit, and single statement transaction from operations on
the normal transaction.
Having a a high-level interface for transaction management provides
a better base for implementing transactional concepts that are not
always tied to storage engines and also makes it easier to interect
with other higher level modules of the server.
Diffstat (limited to 'sql/rpl_injector.cc')
-rw-r--r-- | sql/rpl_injector.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/rpl_injector.cc b/sql/rpl_injector.cc index 684655d1c3b..738341cc034 100644 --- a/sql/rpl_injector.cc +++ b/sql/rpl_injector.cc @@ -15,6 +15,7 @@ #include "mysql_priv.h" #include "rpl_injector.h" +#include "transaction.h" /* injector::transaction - member definitions @@ -35,7 +36,7 @@ injector::transaction::transaction(MYSQL_BIN_LOG *log, THD *thd) m_start_pos.m_file_name= my_strdup(log_info.log_file_name, MYF(0)); m_start_pos.m_file_pos= log_info.pos; - begin_trans(m_thd); + trans_begin(m_thd); thd->set_current_stmt_binlog_row_based(); } @@ -81,8 +82,8 @@ int injector::transaction::commit() is committed by committing the statement transaction explicitly. */ - ha_autocommit_or_rollback(m_thd, 0); - end_trans(m_thd, COMMIT); + trans_commit_stmt(m_thd); + trans_commit(m_thd); DBUG_RETURN(0); } |