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

Fixed BF abort in sync rollback mode.

* Pass condition variable for client_state
* Notify all cond waiters when changing the transcation status to
  aborted
* Wait for aborting transaction state aborted in before_command
This commit is contained in:
Teemu Ollakka
2018-07-02 10:09:48 +03:00
parent db18e91c42
commit 658a84a7d4
7 changed files with 25 additions and 21 deletions

View File

@ -20,10 +20,9 @@ namespace wsrep
wsrep::client_service& client_service,
const wsrep::client_id& id,
enum wsrep::client_state::mode mode)
: wsrep::client_state(mutex_, server_state, client_service, id, mode)
// Note: Mutex is initialized only after passed
// to client_state constructor.
: wsrep::client_state(mutex_, cond_, server_state, client_service, id, mode)
, mutex_()
, cond_()
{ }
~mock_client_state()
{
@ -34,6 +33,7 @@ namespace wsrep
}
private:
wsrep::default_mutex mutex_;
wsrep::default_condition_variable cond_;
public:
private:
};