1
0
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:
heikki@hundin.mysql.fi
2005-04-05 17:56:40 +03:00
parent 680f7d3b66
commit a3e6b30a89
2 changed files with 43 additions and 19 deletions

View File

@ -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())