mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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
This commit is contained in:
@@ -543,7 +543,19 @@ int ha_initialize_handlerton(st_plugin_int *plugin)
|
||||
savepoint_alloc_size+= tmp;
|
||||
hton2plugin[hton->slot]=plugin;
|
||||
if (hton->prepare)
|
||||
{
|
||||
total_ha_2pc++;
|
||||
if (tc_log && tc_log != get_tc_log_implementation())
|
||||
{
|
||||
total_ha_2pc--;
|
||||
hton->prepare= 0;
|
||||
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_UNKNOWN_ERROR,
|
||||
"Cannot enable tc-log at run-time. "
|
||||
"XA features of %s are disabled",
|
||||
plugin->name.str);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
|
||||
Reference in New Issue
Block a user