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:
marko 2007-11-02 12:53:06 +00:00
parent f3fc38d830
commit fb2ff70b74

View file

@ -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) {