File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -561,6 +561,8 @@ inline void trx_t::release_locks()
561
561
562
562
if (UT_LIST_GET_LEN (lock.trx_locks ))
563
563
lock_trx_release_locks (this );
564
+ else
565
+ lock.table_locks .clear ();
564
566
}
565
567
566
568
/* *******************************************************************/ /* *
@@ -1681,6 +1683,16 @@ trx_commit_in_memory(
1681
1683
DBUG_LOG (" trx" , " Autocommit in memory: " << trx);
1682
1684
trx->state = TRX_STATE_NOT_STARTED;
1683
1685
} else {
1686
+ #ifdef UNIV_DEBUG
1687
+ if (!UT_LIST_GET_LEN (trx->lock .trx_locks )) {
1688
+ for (lock_list::iterator it
1689
+ = trx->lock .table_locks .begin ();
1690
+ it != trx->lock .table_locks .end ();
1691
+ it++) {
1692
+ ut_ad (!*it);
1693
+ }
1694
+ }
1695
+ #endif /* UNIV_DEBUG */
1684
1696
trx_mutex_enter (trx);
1685
1697
trx->commit_state ();
1686
1698
trx_mutex_exit (trx);
You can’t perform that action at this time.
0 commit comments