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

BUG#12162 - one can start two transactions with the same XID.

Now we keep all active XID's in a hash
This commit is contained in:
unknown
2005-08-12 21:15:01 +02:00
parent e10362b472
commit 87ae5a1597
11 changed files with 211 additions and 93 deletions

View File

@ -502,7 +502,7 @@ void close_thread_tables(THD *thd, bool lock_in_use, bool skip_derived,
*/
bzero(&thd->transaction.stmt, sizeof(thd->transaction.stmt));
if (!thd->active_transaction())
thd->transaction.xid.null();
thd->transaction.xid_state.xid.null();
/* VOID(pthread_sigmask(SIG_SETMASK,&thd->block_signals,NULL)); */
if (!lock_in_use)