mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Refactored storage service out of client service interface.
This commit is contained in:
@ -16,7 +16,6 @@ namespace db
|
||||
public:
|
||||
client_state(wsrep::mutex& mutex,
|
||||
wsrep::condition_variable& cond,
|
||||
db::client* client,
|
||||
db::server_state& server_state,
|
||||
wsrep::client_service& client_service,
|
||||
const wsrep::client_id& client_id,
|
||||
@ -27,22 +26,11 @@ namespace db
|
||||
client_service,
|
||||
client_id,
|
||||
mode)
|
||||
, client_(client)
|
||||
, is_autocommit_(false)
|
||||
, do_2pc_(false)
|
||||
{ }
|
||||
db::client* client() { return client_; }
|
||||
void reset_globals() { }
|
||||
void store_globals() { wsrep::client_state::store_globals(); }
|
||||
bool is_autocommit() const { return is_autocommit_; }
|
||||
bool do_2pc() const { return do_2pc_; }
|
||||
|
||||
private:
|
||||
client_state(const client_state&);
|
||||
client_state& operator=(const client_state&);
|
||||
db::client* client_;
|
||||
bool is_autocommit_;
|
||||
bool do_2pc_;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user