1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Binlog SE doesn't implement abort_transaction(), so skip warning.

This commit is contained in:
Nirbhay Choubey
2015-07-14 17:33:22 -04:00
parent e204116734
commit ee9bdcf79a

View File

@ -6026,9 +6026,17 @@ int ha_abort_transaction(THD *bf_thd, THD *victim_thd, my_bool signal)
{
handlerton *hton= ha_info->ht();
if (!hton->abort_transaction)
WSREP_WARN("cannot abort transaction");
{
/* Skip warning for binlog SE */
if (hton->db_type != DB_TYPE_BINLOG)
{
WSREP_WARN("Cannot abort transaction.");
}
}
else
{
hton->abort_transaction(hton, bf_thd, victim_thd, signal);
}
ha_info_next= ha_info->next();
}
DBUG_RETURN(0);