Remove unused variables
Reviewers: mferencevic, msantl, ipaljak, vkasljevic Reviewed By: ipaljak Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1870
This commit is contained in:
parent
b01cbe12b3
commit
8589dd124d
@ -11,7 +11,6 @@ Coordination::Coordination(const io::network::Endpoint &worker_endpoint,
|
||||
const io::network::Endpoint &master_endpoint,
|
||||
int server_workers_count, int client_workers_count)
|
||||
: server_(worker_endpoint, server_workers_count),
|
||||
worker_id_(worker_id),
|
||||
thread_pool_(client_workers_count, "RPC client") {
|
||||
if (worker_id != 0) {
|
||||
// The master is always worker 0.
|
||||
|
@ -102,7 +102,6 @@ class Coordination {
|
||||
private:
|
||||
std::unordered_map<int, io::network::Endpoint> workers_;
|
||||
mutable std::mutex lock_;
|
||||
int worker_id_;
|
||||
|
||||
std::unordered_map<int, communication::rpc::ClientPool> client_pools_;
|
||||
utils::ThreadPool thread_pool_;
|
||||
|
@ -254,7 +254,7 @@ TEST_F(DistributedGraphDbSimpleUpdatesTest, DeleteVertexRemoteStillConnected) {
|
||||
auto dba0 = master().Access();
|
||||
auto dba1 = worker(1).Access(dba0->transaction_id());
|
||||
auto e_local = dba1->FindEdge(e_address.gid(), false);
|
||||
auto v_local = dba1->FindVertex(v_address.gid(), false);
|
||||
EXPECT_TRUE(dba1->FindVertexOptional(v_address.gid(), false));
|
||||
auto v_remote = VertexAccessor(v_address, *dba0);
|
||||
|
||||
dba1->RemoveEdge(e_local);
|
||||
|
@ -861,7 +861,7 @@ TEST_F(Durability, ContainsDurabilityFilesSnapshot) {
|
||||
{
|
||||
database::GraphDb db{DbConfig()};
|
||||
auto dba = db.Access();
|
||||
auto v0 = dba->InsertVertex();
|
||||
dba->InsertVertex();
|
||||
MakeSnapshot(db);
|
||||
}
|
||||
ASSERT_TRUE(durability::ContainsDurabilityFiles(durability_dir_));
|
||||
@ -872,7 +872,7 @@ TEST_F(Durability, ContainsDurabilityFilesWal) {
|
||||
{
|
||||
database::GraphDb db{DbConfig(true, false)};
|
||||
auto dba = db.Access();
|
||||
auto v0 = dba->InsertVertex();
|
||||
dba->InsertVertex();
|
||||
dba->Commit();
|
||||
db.wal().Flush();
|
||||
}
|
||||
@ -884,7 +884,7 @@ TEST_F(Durability, MoveToBackupSnapshot) {
|
||||
{
|
||||
database::GraphDb db{DbConfig()};
|
||||
auto dba = db.Access();
|
||||
auto v0 = dba->InsertVertex();
|
||||
dba->InsertVertex();
|
||||
MakeSnapshot(db);
|
||||
}
|
||||
|
||||
@ -898,7 +898,7 @@ TEST_F(Durability, MoveToBackupWal) {
|
||||
{
|
||||
database::GraphDb db{DbConfig(true, false)};
|
||||
auto dba = db.Access();
|
||||
auto v0 = dba->InsertVertex();
|
||||
dba->InsertVertex();
|
||||
dba->Commit();
|
||||
db.wal().Flush();
|
||||
}
|
||||
|
@ -39,11 +39,11 @@ TEST_F(StatTest, CountTest2) {
|
||||
auto v2 = dba->InsertVertex();
|
||||
auto v3 = dba->InsertVertex();
|
||||
auto v4 = dba->InsertVertex();
|
||||
auto e1 = dba->InsertEdge(v1, v2, type);
|
||||
auto e2 = dba->InsertEdge(v2, v2, type);
|
||||
auto e3 = dba->InsertEdge(v3, v2, type);
|
||||
auto e4 = dba->InsertEdge(v4, v2, type);
|
||||
auto e5 = dba->InsertEdge(v1, v3, type);
|
||||
dba->InsertEdge(v1, v2, type);
|
||||
dba->InsertEdge(v2, v2, type);
|
||||
dba->InsertEdge(v3, v2, type);
|
||||
dba->InsertEdge(v4, v2, type);
|
||||
dba->InsertEdge(v1, v3, type);
|
||||
|
||||
COMPARE(stat, 0, 0, 0);
|
||||
db_.RefreshStat();
|
||||
|
Loading…
Reference in New Issue
Block a user