mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-18 14:02:16 +03:00
Add lock argument to server_service::background_rollback()
This is to allow implementation to temporarily release the lock if needed.
This commit is contained in:
@ -184,10 +184,13 @@ namespace wsrep
|
||||
}
|
||||
|
||||
void
|
||||
background_rollback(wsrep::client_state& client_state) WSREP_OVERRIDE
|
||||
background_rollback(wsrep::unique_lock<wsrep::mutex>& lock,
|
||||
wsrep::client_state& client_state) WSREP_OVERRIDE
|
||||
{
|
||||
lock.unlock();
|
||||
client_state.before_rollback();
|
||||
client_state.after_rollback();
|
||||
lock.lock();
|
||||
}
|
||||
|
||||
int wait_committing_transactions(int) WSREP_OVERRIDE { return 0; }
|
||||
|
Reference in New Issue
Block a user