mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +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:
@ -23,11 +23,14 @@ db::client::client(db::server& server,
|
||||
|
||||
void db::client::start()
|
||||
{
|
||||
client_state_.open(client_state_.id());
|
||||
for (size_t i(0); i < params_.n_transactions; ++i)
|
||||
{
|
||||
run_one_transaction();
|
||||
report_progress(i + 1);
|
||||
}
|
||||
client_state_.close();
|
||||
client_state_.cleanup();
|
||||
}
|
||||
|
||||
bool db::client::bf_abort(wsrep::seqno seqno)
|
||||
|
Reference in New Issue
Block a user