mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
MDEV-24967 : Signal 11 on ha_innodb.cc::bg_wsrep_kill_trx line 18611
Null poiter reference in case where bf_thd has no trx .e.g. when we have MDL-conflict.
This commit is contained in:
parent
2628fa2dba
commit
f2428b9c24
1 changed files with 6 additions and 4 deletions
|
|
@ -18598,10 +18598,12 @@ static void bg_wsrep_kill_trx(void *void_arg)
|
||||||
/* apparently victim trx was meanwhile rolled back.
|
/* apparently victim trx was meanwhile rolled back.
|
||||||
tell bf thd not to wait, in case it already started to */
|
tell bf thd not to wait, in case it already started to */
|
||||||
trx_t *trx= thd_to_trx(bf_thd);
|
trx_t *trx= thd_to_trx(bf_thd);
|
||||||
if (lock_t *lock= trx->lock.wait_lock) {
|
/* note that bf_thd might not have trx e.g. in case of
|
||||||
trx_mutex_enter(trx);
|
MDL-conflict. */
|
||||||
lock_cancel_waiting_and_release(lock);
|
if (lock_t *lock= (trx ? trx->lock.wait_lock : NULL)) {
|
||||||
trx_mutex_exit(trx);
|
trx_mutex_enter(trx);
|
||||||
|
lock_cancel_waiting_and_release(lock);
|
||||||
|
trx_mutex_exit(trx);
|
||||||
}
|
}
|
||||||
goto ret1;
|
goto ret1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue