mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
branches/5.1: ibuf_delete_rec(): When the record cannot be found and
the tablespace has been dropped, commit the mini-transaction, so that InnoDB will not hold the insert buffer tree latch in exclusive mode, causing a potential deadlock. This bug was introduced in the fix of Bug #27276 in r2924.
This commit is contained in:
parent
7f5f09d63a
commit
5354bf6b41
1 changed files with 2 additions and 1 deletions
|
@ -2996,7 +2996,7 @@ ibuf_delete_rec(
|
||||||
/* The tablespace has been dropped. It is possible
|
/* The tablespace has been dropped. It is possible
|
||||||
that another thread has deleted the insert buffer
|
that another thread has deleted the insert buffer
|
||||||
entry. Do not complain. */
|
entry. Do not complain. */
|
||||||
goto func_exit;
|
goto commit_and_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
@ -3041,6 +3041,7 @@ ibuf_delete_rec(
|
||||||
|
|
||||||
ut_ad(ibuf_validate_low());
|
ut_ad(ibuf_validate_low());
|
||||||
|
|
||||||
|
commit_and_exit:
|
||||||
btr_pcur_commit_specify_mtr(pcur, mtr);
|
btr_pcur_commit_specify_mtr(pcur, mtr);
|
||||||
|
|
||||||
func_exit:
|
func_exit:
|
||||||
|
|
Loading…
Add table
Reference in a new issue