Implement ReplicationQueryHandler class (#52)

* Refactor io::network::Endpoint class
* Add ParseSocketOrIpAddress static method to Endpoint class
* Implement ReplQueryHandler methods
* Add implementation of SetReplicationRole to ReplQueryHandler
* Fix PrepareReplicationQuery (create PullPlanVector)

Co-authored-by: jseljan <josip.seljan@memgraph.io>
This commit is contained in:
Josip Seljan
2020-12-11 10:47:19 +01:00
committed by Antonio Andelic
parent f23e2e12c4
commit a0fb3fc463
13 changed files with 307 additions and 98 deletions

View File

@@ -72,7 +72,7 @@ TEST(Network, SocketReadHangOnConcurrentConnections) {
// start clients
std::vector<std::thread> clients;
for (int i = 0; i < Nc; ++i)
clients.push_back(std::thread(client_run, i, interface, ep.port()));
clients.push_back(std::thread(client_run, i, interface, ep.port));
// wait for 2s and stop clients
std::this_thread::sleep_for(std::chrono::seconds(2));