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

Made client_service, transaction independent of provider.

Provider may not be loaded when client_service and
transaction are constructed.
This commit is contained in:
Teemu Ollakka
2018-06-19 14:54:58 +03:00
parent 94f77eacf0
commit 779f84e5df
8 changed files with 36 additions and 34 deletions

View File

@ -43,7 +43,7 @@ namespace wsrep
{
public:
mock_client_service(wsrep::mock_client_state& client_state)
: wsrep::client_service(client_state.provider())
: wsrep::client_service()
, is_autocommit_()
, do_2pc_()
, fail_next_applying_()
@ -89,8 +89,9 @@ namespace wsrep
replay() WSREP_OVERRIDE
{
enum wsrep::provider::status ret(
provider_.replay(client_state_.transaction().ws_handle(),
&client_state_));
client_state_.provider().replay(
client_state_.transaction().ws_handle(),
&client_state_));
++replays_;
return ret;
}