Refs: MW-279

- fixes in innodb to skip wsrep processing (like kill victim) when running in native mysql mode
- similar fixes in mysql server side
- forcing tc_log_dummy in native mysql mode when no binlog used. wsrep hton messes up handler counter
  and used to lead in using tc_log_mmap instead. Bad news is that tc_log_mmap does not seem to work at all
This commit is contained in:
sjaakola 2016-06-08 15:19:01 +03:00 committed by Nirbhay Choubey
commit 415823a41c
4 changed files with 42 additions and 23 deletions

View file

@ -5288,8 +5288,15 @@ static int init_server_components()
tc_log= get_tc_log_implementation();
#ifdef WITH_WSREP
if (WSREP_ON && tc_log == &tc_log_mmap)
tc_log= &tc_log_dummy;
if (tc_log == &tc_log_mmap)
{
/*
wsrep hton raises total_ha_2pc count to 2, even in native mysql mode.
Have to force using tc_log_dummy here, as tc_log_mmap segfaults.
*/
if (WSREP_ON || total_ha_2pc <= 2)
tc_log= &tc_log_dummy;
}
WSREP_DEBUG("Initial TC log open: %s",
(tc_log == &mysql_bin_log) ? "binlog" :