diff --git a/floyd/tools/cl.cc b/floyd/tools/cl.cc index 1ea2208..6da2212 100644 --- a/floyd/tools/cl.cc +++ b/floyd/tools/cl.cc @@ -32,7 +32,7 @@ int cl(const std::string path) { RaftMeta *raft_meta = new RaftMeta(db, logger); raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; char buff[10]; for (int i = 0; i < 10; i++) { Entry *entry = new Entry(); @@ -65,7 +65,7 @@ int cl_spec(const std::string path) { RaftMeta *raft_meta = new RaftMeta(db, logger); raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; char buff[10]; for (int i = 0; i < 21; i++) { Entry *entry = new Entry(); diff --git a/floyd/tools/cl1.cc b/floyd/tools/cl1.cc index 8da5b1c..87b2b12 100644 --- a/floyd/tools/cl1.cc +++ b/floyd/tools/cl1.cc @@ -43,7 +43,7 @@ int cl1(const std::string path) { raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; Entry *entry = new Entry(); InitEntry(1, "1", "1", entry); entries.push_back(entry); @@ -110,7 +110,7 @@ int cl2(const std::string path) { raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; Entry *entry = new Entry(); InitEntry(1, "1", "1", entry); entries.push_back(entry); @@ -173,7 +173,7 @@ int cl3(const std::string path) { raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; Entry *entry = new Entry(); InitEntry(1, "1", "1", entry); entries.push_back(entry); @@ -245,7 +245,7 @@ int cl4(const std::string path) { raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; Entry *entry = new Entry(); InitEntry(1, "1", "1", entry); entries.push_back(entry); @@ -300,7 +300,7 @@ int cl5(const std::string path) { raft_meta->Init(); RaftLog *raft_log = new RaftLog(db, logger); - std::vector entries; + std::vector entries; Entry *entry = new Entry(); InitEntry(1, "1", "1", entry); entries.push_back(entry);