1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Make is_rollbacker_active() public, don't unlock for background rollback

Make is_rollbacker_active() public so that the BF thread can
check if the rollbacker was started or not.

Also don't unlock the lock for launching the background
rollbacker to avoid race conditions in accessing the
victim state.
This commit is contained in:
Teemu Ollakka
2023-04-05 09:30:55 +03:00
parent 4951c38357
commit f8a20ff00f
2 changed files with 9 additions and 7 deletions

View File

@ -1073,9 +1073,7 @@ bool wsrep::transaction::bf_abort(
}
}
lock.unlock();
server_service_.background_rollback(client_state_);
lock.lock();
}
}
return ret;