mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-27 09:01:50 +03:00
Added open(), close(), cleanup() methods to client_state.
Depending on the DBMS client session allocation strategy the client id may or may not be available when the client_session is constructed, therefore there should be a method to assign an id after construction. Close/cleanup methods were added to clean up open transactions appropriately.
This commit is contained in:
@ -35,6 +35,7 @@ void db::server::applier_thread()
|
||||
simulator_.params());
|
||||
wsrep::client_state* cc(static_cast<wsrep::client_state*>(
|
||||
&applier.client_state()));
|
||||
cc->open(cc->id());
|
||||
enum wsrep::provider::status ret(
|
||||
server_state_.provider().run_applier(cc));
|
||||
wsrep::log_info() << "Applier thread exited with error code " << ret;
|
||||
|
Reference in New Issue
Block a user