1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-31 18:24:25 +03:00

Fixes according to review comments

This commit is contained in:
sjaakola
2023-04-09 17:15:04 +03:00
parent 1cf5ca7848
commit e20e53fb1a
2 changed files with 12 additions and 2 deletions

View File

@ -1076,8 +1076,17 @@ bool wsrep::transaction::bf_abort(
lock.unlock();
/* if background rollback is skipped, reset rollbacker activity */
if (server_service_.background_rollback(client_state_))
client_state_.set_rollbacker_active(false);
lock.lock();
{
lock.lock();
client_state_.set_rollbacker_active(false);
/* release the victim from waiting, if it has advanced to
wait_rollback_complete_and_acquire_ownership stage */
if (client_state_.state() == wsrep::client_state::s_idle)
client_state_.cond_.notify_all();
}
else
lock.lock();
}
}
return ret;