Skip to content
Permalink
Browse files
MDEV-13935: INSERT INTO stuck at state "Unlocking tables"
There were some differences on MariaDB compared with MySQL.
Fix these differences.
  • Loading branch information
Jan Lindström committed Mar 8, 2018
1 parent a050189 commit aec4734
Showing 1 changed file with 10 additions and 3 deletions.
@@ -1489,8 +1489,12 @@ class TrxInInnoDB {
}

/* Avoid excessive mutex acquire/release */
if (trx->in_depth++) {
/* The transaction is already inside InnoDB. */
++trx->in_depth;

/* If trx->in_depth is greater than 1 then
transaction is already in InnoDB. */
if (trx->in_depth > 1) {

return;
}

@@ -1518,7 +1522,10 @@ class TrxInInnoDB {

ut_ad(trx->in_depth > 0);

if (--trx->in_depth) {
--trx->in_depth;

if (trx->in_depth > 0) {

return;
}

0 comments on commit aec4734

Please sign in to comment.