mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-13 04:01:32 +03:00
Replaced replicating mode with local.
The intended purpose for local mode was local storage access without entering replication hooks. However, the same can be achieved with high priority mode. Removed replicating mode and use local instead to denote locally processing clients.
This commit is contained in:
@ -96,7 +96,7 @@ void db::server::start_client(size_t id)
|
||||
{
|
||||
auto client(std::make_shared<db::client>(
|
||||
*this, id,
|
||||
wsrep::client_state::m_replicating,
|
||||
wsrep::client_state::m_local,
|
||||
simulator_.params()));
|
||||
clients_.push_back(client);
|
||||
client_threads_.push_back(
|
||||
@ -115,7 +115,7 @@ wsrep::client_state* db::server::local_client_state()
|
||||
std::ostringstream id_os;
|
||||
size_t client_id(++last_client_id_);
|
||||
db::client* client(new db::client(*this, client_id,
|
||||
wsrep::client_state::m_replicating,
|
||||
wsrep::client_state::m_local,
|
||||
simulator_.params()));
|
||||
return &client->client_state();
|
||||
}
|
||||
|
Reference in New Issue
Block a user