Skip to content

Commit 4b9bf9d

Browse files
committed
bugfix: remove the code that broke XA recovery
1 parent 3620910 commit 4b9bf9d

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

sql/log.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ class TC_LOG_DUMMY: public TC_LOG // use it to disable the logging
108108
int log_and_order(THD *thd, my_xid xid, bool all,
109109
bool need_prepare_ordered, bool need_commit_ordered)
110110
{
111-
/*
112-
If we are not using WSREP this is an Internal error
113-
- TC_LOG_DUMMY::log_and_order() called
114-
*/
115-
DBUG_ASSERT(IF_WSREP(1,0));
111+
DBUG_ASSERT(0);
116112
return 1;
117113
}
118114
int unlog(ulong cookie, my_xid xid) { return 0; }

sql/mysqld.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5101,9 +5101,6 @@ a file name for --log-bin-index option", opt_binlog_index_name);
51015101

51025102
tc_log= get_tc_log_implementation();
51035103

5104-
if (WSREP_ON && tc_log == &tc_log_mmap)
5105-
tc_log= &tc_log_dummy;
5106-
51075104
WSREP_DEBUG("Initial TC log open: %s",
51085105
(tc_log == &mysql_bin_log) ? "binlog" :
51095106
(tc_log == &tc_log_mmap) ? "mmap" :

0 commit comments

Comments
 (0)