mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
branches/zip: trx_rollback_or_clean_all_recovered(): Acquire the
kernel_mutex in the beginning of each loop, as was the case until r2040. The bug was spotted by Heikki.
This commit is contained in:
parent
f3fc38d830
commit
fb2ff70b74
1 changed files with 5 additions and 0 deletions
|
@ -536,7 +536,12 @@ trx_rollback_or_clean_all_recovered(
|
|||
} else {
|
||||
goto leave_function;
|
||||
}
|
||||
|
||||
mutex_exit(&kernel_mutex);
|
||||
|
||||
loop:
|
||||
mutex_enter(&kernel_mutex);
|
||||
|
||||
for (trx = UT_LIST_GET_FIRST(trx_sys->trx_list); trx;
|
||||
trx = UT_LIST_GET_NEXT(trx_list, trx)) {
|
||||
if (!trx->is_recovered) {
|
||||
|
|
Loading…
Add table
Reference in a new issue