mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Finished dbsim integration with refactored client API.
This commit is contained in:
@ -126,6 +126,13 @@ namespace wsrep
|
||||
};
|
||||
|
||||
const static int state_max_ = s_quitting + 1;
|
||||
|
||||
|
||||
void store_globals()
|
||||
{
|
||||
thread_id_ = wsrep::this_thread::get_id();
|
||||
}
|
||||
|
||||
/*!
|
||||
* Destructor.
|
||||
*/
|
||||
@ -134,7 +141,6 @@ namespace wsrep
|
||||
assert(transaction_.active() == false);
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
*
|
||||
*/
|
||||
@ -328,7 +334,8 @@ namespace wsrep
|
||||
int commit()
|
||||
{
|
||||
assert(mode_ == m_applier || mode_ == m_local);
|
||||
return client_service_.commit(*this,
|
||||
return client_service_.commit(
|
||||
*this,
|
||||
transaction_.ws_handle(), transaction_.ws_meta());
|
||||
}
|
||||
//
|
||||
@ -553,13 +560,6 @@ namespace wsrep
|
||||
client_context(const client_context&);
|
||||
client_context& operator=(client_context&);
|
||||
|
||||
/*
|
||||
* Friend declarations
|
||||
*/
|
||||
//friend int server_context::on_apply(client_context&,
|
||||
// const wsrep::ws_handle&,
|
||||
// const wsrep::ws_meta&,
|
||||
// const wsrep::const_buffer&);
|
||||
friend class client_context_switch;
|
||||
friend class client_applier_mode;
|
||||
friend class client_toi_mode;
|
||||
|
@ -239,6 +239,8 @@ namespace wsrep
|
||||
int load_provider(const std::string& provider,
|
||||
const std::string& provider_options);
|
||||
|
||||
void unload_provider();
|
||||
|
||||
/*!
|
||||
* Return reference to provider.
|
||||
*
|
||||
|
Reference in New Issue
Block a user