mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Made client_id, transaction_id constructors explicit.
This commit is contained in:
@ -79,7 +79,7 @@ void db::client::run_one_transaction()
|
||||
{
|
||||
// wsrep::log_debug() << "Start transaction";
|
||||
err = client_state_.start_transaction(
|
||||
server_.next_transaction_id());
|
||||
wsrep::transaction_id(server_.next_transaction_id()));
|
||||
assert(err == 0);
|
||||
se_trx_.start(this);
|
||||
return err;
|
||||
|
@ -95,7 +95,7 @@ void db::server::client_thread(const std::shared_ptr<db::client>& client)
|
||||
void db::server::start_client(size_t id)
|
||||
{
|
||||
auto client(std::make_shared<db::client>(
|
||||
*this, id,
|
||||
*this, wsrep::client_id(id),
|
||||
wsrep::client_state::m_local,
|
||||
simulator_.params()));
|
||||
clients_.push_back(client);
|
||||
|
@ -38,7 +38,7 @@ namespace db
|
||||
db::server_state& server_state() { return server_state_; }
|
||||
wsrep::transaction_id next_transaction_id()
|
||||
{
|
||||
return (last_transaction_id_.fetch_add(1) + 1);
|
||||
return wsrep::transaction_id(last_transaction_id_.fetch_add(1) + 1);
|
||||
}
|
||||
void donate_sst(const std::string&, const wsrep::gtid&, bool);
|
||||
wsrep::client_state* local_client_state();
|
||||
|
Reference in New Issue
Block a user