mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
srv0srv.c:
Fix a seg fault if a lock wait timeout is exceeded at the some time someone grants the lock innobase/srv/srv0srv.c: Fix a seg fault if a lock wait timeout is exceeded at the some time someone grants the lock
This commit is contained in:
parent
421595c12e
commit
689a55b1ad
1 changed files with 8 additions and 4 deletions
|
|
@ -2144,10 +2144,14 @@ loop:
|
|||
/* Timeout exceeded or a wrap-around in system
|
||||
time counter: cancel the lock request queued
|
||||
by the transaction and release possible
|
||||
other transactions waiting behind */
|
||||
other transactions waiting behind; it is
|
||||
possible that the lock has already been
|
||||
granted: in that case do nothing */
|
||||
|
||||
lock_cancel_waiting_and_release(
|
||||
thr_get_trx(slot->thr)->wait_lock);
|
||||
if (thr_get_trx(slot->thr)->wait_lock) {
|
||||
lock_cancel_waiting_and_release(
|
||||
thr_get_trx(slot->thr)->wait_lock);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue