mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Fixed unit test failures caused by refactoring.
This commit is contained in:
@ -327,7 +327,7 @@ namespace wsrep
|
||||
|
||||
int commit()
|
||||
{
|
||||
assert(mode_ == m_applier);
|
||||
assert(mode_ == m_applier || mode_ == m_local);
|
||||
return client_service_.commit(*this,
|
||||
transaction_.ws_handle(), transaction_.ws_meta());
|
||||
}
|
||||
@ -351,19 +351,19 @@ namespace wsrep
|
||||
|
||||
int before_commit()
|
||||
{
|
||||
assert(state_ == s_exec);
|
||||
assert(state_ == s_exec || mode_ == m_local);
|
||||
return transaction_.before_commit();
|
||||
}
|
||||
|
||||
int ordered_commit()
|
||||
{
|
||||
assert(state_ == s_exec);
|
||||
assert(state_ == s_exec || mode_ == m_local);
|
||||
return transaction_.ordered_commit();
|
||||
}
|
||||
|
||||
int after_commit()
|
||||
{
|
||||
assert(state_ == s_exec);
|
||||
assert(state_ == s_exec || mode_ == m_local);
|
||||
return transaction_.after_commit();
|
||||
}
|
||||
|
||||
@ -418,7 +418,7 @@ namespace wsrep
|
||||
enum wsrep::provider::status replay(
|
||||
wsrep::transaction_context& tc)
|
||||
{
|
||||
return client_service_.replay(tc);
|
||||
return client_service_.replay(*this, tc);
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -103,7 +103,9 @@ namespace wsrep
|
||||
* \todo This should not be visible to DBMS level, should be
|
||||
* handled internally by wsrep-lib.
|
||||
*/
|
||||
virtual enum wsrep::provider::status replay(wsrep::transaction_context&) = 0;
|
||||
virtual enum wsrep::provider::status replay(
|
||||
wsrep::client_context&,
|
||||
wsrep::transaction_context&) = 0;
|
||||
|
||||
/*!
|
||||
* Wait until all replaying transactions have been finished
|
||||
|
Reference in New Issue
Block a user