Commit 091401e7 authored by ingo@chilla.local's avatar ingo@chilla.local

Merge mysql.com:/home/mydev/mysql-5.1--main

into  mysql.com:/home/mydev/mysql-5.1-amerge
parents f991b573 c2df72d6
# Embedded server doesn't support binlog
-- source include/not_embedded.inc
-- source include/have_innodb.inc -- source include/have_innodb.inc
# #
......
...@@ -2852,7 +2852,7 @@ bool MYSQL_LOG::write(Log_event *event_info) ...@@ -2852,7 +2852,7 @@ bool MYSQL_LOG::write(Log_event *event_info)
} }
#endif /* HAVE_REPLICATION */ #endif /* HAVE_REPLICATION */
#ifdef USING_TRANSACTIONS #if defined(USING_TRANSACTIONS) && defined(HAVE_ROW_BASED_REPLICATION)
/* /*
Should we write to the binlog cache or to the binlog on disk? Should we write to the binlog cache or to the binlog on disk?
Write to the binlog cache if: Write to the binlog cache if:
...@@ -2864,10 +2864,8 @@ bool MYSQL_LOG::write(Log_event *event_info) ...@@ -2864,10 +2864,8 @@ bool MYSQL_LOG::write(Log_event *event_info)
*/ */
if (opt_using_transactions && thd) if (opt_using_transactions && thd)
{ {
#ifdef HAVE_ROW_BASED_REPLICATION
if (thd->binlog_setup_trx_data()) if (thd->binlog_setup_trx_data())
goto err; goto err;
#endif /*HAVE_ROW_BASED_REPLICATION*/
binlog_trx_data *const trx_data= binlog_trx_data *const trx_data=
(binlog_trx_data*) thd->ha_data[binlog_hton.slot]; (binlog_trx_data*) thd->ha_data[binlog_hton.slot];
...@@ -2891,7 +2889,7 @@ bool MYSQL_LOG::write(Log_event *event_info) ...@@ -2891,7 +2889,7 @@ bool MYSQL_LOG::write(Log_event *event_info)
LOCK_log. LOCK_log.
*/ */
} }
#endif #endif /* USING_TRANSACTIONS && HAVE_ROW_BASED_REPLICATION */
DBUG_PRINT("info",("event type: %d",event_info->get_type_code())); DBUG_PRINT("info",("event type: %d",event_info->get_type_code()));
/* /*
......
...@@ -2778,7 +2778,9 @@ void select_create::binlog_show_create_table(TABLE **tables, uint count) ...@@ -2778,7 +2778,9 @@ void select_create::binlog_show_create_table(TABLE **tables, uint count)
schema that will do a close_thread_tables(), destroying the schema that will do a close_thread_tables(), destroying the
statement transaction cache. statement transaction cache.
*/ */
#ifdef HAVE_ROW_BASED_REPLICATION
DBUG_ASSERT(thd->current_stmt_binlog_row_based); DBUG_ASSERT(thd->current_stmt_binlog_row_based);
#endif
DBUG_ASSERT(tables && *tables && count > 0); DBUG_ASSERT(tables && *tables && count > 0);
char buf[2048]; char buf[2048];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment