summaryrefslogtreecommitdiff
path: root/sql/rpl_injector.cc
diff options
context:
space:
mode:
authorunknown <mats@romeo.(none)>2006-11-13 15:42:01 +0100
committerunknown <mats@romeo.(none)>2006-11-13 15:42:01 +0100
commit8a7db87e4bc5d7503ad15d108e30e886fda319c7 (patch)
tree94fc60e8798d43d9ea510f840041d372dcebc7ea /sql/rpl_injector.cc
parentb5d6a629c9d23c624d1e6f54ef07f723a6654a1c (diff)
downloadmariadb-git-8a7db87e4bc5d7503ad15d108e30e886fda319c7.tar.gz
Fixing problem in injector code making NDB tests fire an assertion.
sql/ha_ndbcluster_binlog.cc: Removing extreneous setting of current_stmt_binlog_row_based. sql/rpl_injector.cc: Since current_stmt_binlog_row_based is reset as the end of a transaction it needs to be set at the beginning of a transaction.
Diffstat (limited to 'sql/rpl_injector.cc')
-rw-r--r--sql/rpl_injector.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/rpl_injector.cc b/sql/rpl_injector.cc
index 5a74fd58755..3a0fca4dfa5 100644
--- a/sql/rpl_injector.cc
+++ b/sql/rpl_injector.cc
@@ -39,6 +39,8 @@ injector::transaction::transaction(MYSQL_BIN_LOG *log, THD *thd)
m_start_pos.m_file_pos= log_info.pos;
begin_trans(m_thd);
+
+ thd->set_current_stmt_binlog_row_based();
}
injector::transaction::~transaction()