1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +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

@ -27,8 +27,8 @@ namespace wsrep
class client_service : public wsrep::transaction_termination_service
{
public:
client_service(wsrep::provider& provider)
: provider_(provider) { }
client_service() { }
/**
*
*/
@ -145,9 +145,6 @@ namespace wsrep
* been enabled.
*/
virtual void debug_crash(const char* crash_point) = 0;
protected:
wsrep::provider& provider_;
};
/**

View File

@ -129,6 +129,7 @@ namespace wsrep
transaction(const transaction&);
transaction operator=(const transaction&);
wsrep::provider& provider();
void flags(int flags) { flags_ = flags; }
int certify_fragment(wsrep::unique_lock<wsrep::mutex>&);
int certify_commit(wsrep::unique_lock<wsrep::mutex>&);
@ -137,7 +138,6 @@ namespace wsrep
void cleanup();
void debug_log_state(const char*) const;
wsrep::provider& provider_;
wsrep::server_service& server_service_;
wsrep::client_service& client_service_;
wsrep::client_state& client_state_;