mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
handler.cc, ha_innodb.cc:
Fix Bug #8650 : InnoDB does not rollback SQL statement at an error
This commit is contained in:
@ -520,14 +520,14 @@ void trans_register_ha(THD *thd, bool all, handlerton *ht_arg)
|
||||
else
|
||||
trans= &thd->transaction.stmt;
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
handlerton **ht=trans->ht;
|
||||
while (*ht)
|
||||
{
|
||||
DBUG_ASSERT(*ht != ht_arg);
|
||||
if (*ht == ht_arg)
|
||||
DBUG_VOID_RETURN; /* already registered, return */
|
||||
ht++;
|
||||
}
|
||||
#endif
|
||||
|
||||
trans->ht[trans->nht++]=ht_arg;
|
||||
trans->no_2pc|=(ht_arg->prepare==0);
|
||||
if (thd->transaction.xid.is_null())
|
||||
|
Reference in New Issue
Block a user