mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
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:
parent
fec296cc10
commit
415823a41c
4 changed files with 42 additions and 23 deletions
|
|
@ -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" :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue