diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-07-27 21:02:00 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-07-27 21:02:00 +0200 |
commit | a6071cc596fe37ef02e5639042de124f0c11b3b3 (patch) | |
tree | ac551d570d7053a9f948d8415c8fe31ee49375d7 /sql/log.h | |
parent | 1987819281eba73cac7ff04082f8f9c024b7a54f (diff) | |
download | mariadb-git-a6071cc596fe37ef02e5639042de124f0c11b3b3.tar.gz |
MDEV-6082 Assertion `0' fails in TC_LOG_DUMMY::log_and_order on DML after installing TokuDB at runtime on server with disabled InnoDB
We don't support changing tc_log implementation at run time.
If the first XA-capable engine is loaded with INSTALL PLUGIN - disable its
XA capabilities with a warning
Diffstat (limited to 'sql/log.h')
-rw-r--r-- | sql/log.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/log.h b/sql/log.h index e388df61b38..4eb23d4878f 100644 --- a/sql/log.h +++ b/sql/log.h @@ -954,6 +954,13 @@ end: DBUG_RETURN(error); } - +static inline TC_LOG *get_tc_log_implementation() +{ + if (total_ha_2pc <= 1) + return &tc_log_dummy; + if (opt_bin_log) + return &mysql_bin_log; + return &tc_log_mmap; +} #endif /* LOG_H */ |