1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

codership/wsrep-lib#13 Fix dbsim to deal with provider generated server id

Dbsim has internal map of server objects for SST simulation.
This was mapped using server_id, which is not available
anymore when server object is constructed. Changed the dbsim to
use server name instead for internal mapping.
This commit is contained in:
Teemu Ollakka
2018-11-06 18:14:37 +02:00
committed by Alexey Yurchenko
parent ea9971d54b
commit c7e8bfbdb5
4 changed files with 21 additions and 11 deletions

View File

@ -61,7 +61,7 @@ namespace db
wsrep::default_mutex mutex_;
const db::params& params_;
std::map<wsrep::id, std::unique_ptr<db::server>> servers_;
std::map<std::string, std::unique_ptr<db::server>> servers_;
std::chrono::time_point<std::chrono::steady_clock> clients_start_;
std::chrono::time_point<std::chrono::steady_clock> clients_stop_;
public: