mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
- Initialize member cluster ID only on connection to cluster and forget
it on disconnect. - Don't rely on own index from the view because the view may come from another member (IST/SST), instead always determine own index from own ID. Refs codership/wsrep-lib#13
This commit is contained in:
@ -27,7 +27,6 @@
|
||||
|
||||
db::server::server(simulator& simulator,
|
||||
const std::string& name,
|
||||
const std::string& server_id,
|
||||
const std::string& address)
|
||||
: simulator_(simulator)
|
||||
, storage_engine_(simulator_.params())
|
||||
@ -35,7 +34,7 @@ db::server::server(simulator& simulator,
|
||||
, cond_()
|
||||
, server_service_(*this)
|
||||
, server_state_(*this, server_service_,
|
||||
name, server_id, address, "dbsim_" + name + "_data")
|
||||
name, address, "dbsim_" + name + "_data")
|
||||
, last_client_id_(0)
|
||||
, last_transaction_id_(0)
|
||||
, appliers_()
|
||||
|
@ -41,7 +41,6 @@ namespace db
|
||||
public:
|
||||
server(simulator& simulator,
|
||||
const std::string& name,
|
||||
const std::string& id,
|
||||
const std::string& address);
|
||||
void applier_thread();
|
||||
void start_applier();
|
||||
|
@ -35,7 +35,6 @@ namespace db
|
||||
server_state(db::server& server,
|
||||
wsrep::server_service& server_service,
|
||||
const std::string& name,
|
||||
const std::string& server_id,
|
||||
const std::string& address,
|
||||
const std::string& working_dir)
|
||||
: wsrep::server_state(
|
||||
@ -43,7 +42,6 @@ namespace db
|
||||
cond_,
|
||||
server_service,
|
||||
name,
|
||||
server_id,
|
||||
"",
|
||||
address,
|
||||
working_dir,
|
||||
|
@ -109,7 +109,6 @@ void db::simulator::start()
|
||||
std::make_unique<db::server>(
|
||||
*this,
|
||||
name_os.str(),
|
||||
id_os.str(),
|
||||
address_os.str()))));
|
||||
if (it.second == false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user