Commit aec4734f authored by Jan Lindström's avatar Jan Lindström

MDEV-13935: INSERT INTO stuck at state "Unlocking tables"

There were some differences on MariaDB compared with MySQL.
Fix these differences.
parent a0501897
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment