Commit 89f0e34f authored by marko's avatar marko

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.
parent 7187686b
......@@ -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) {
......
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