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

Changed background_rollback to return true/false depending on if

background rollback did happen.
Background rollback should be skipped if the aborting happens due to KILL command issued by user.
Some KILL signals, like KILL CONECTION, wake up the victim too early so that background rollback
could happen in parallel with the victim waking up and continuing execution.
This commit is contained in:
sjaakola
2023-03-16 22:34:58 +02:00
parent 4951c38357
commit 1cf5ca7848
5 changed files with 9 additions and 5 deletions

View File

@ -1074,7 +1074,9 @@ bool wsrep::transaction::bf_abort(
}
lock.unlock();
server_service_.background_rollback(client_state_);
/* if background rollback is skipped, reset rollbacker activity */
if (server_service_.background_rollback(client_state_))
client_state_.set_rollbacker_active(false);
lock.lock();
}
}