Skip to content

Commit

Permalink
update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
baotiao committed Aug 9, 2017
1 parent e5f6464 commit a83a739
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions floyd/tools/cl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<Entry *> entries;
std::vector<const Entry *> entries;
char buff[10];
for (int i = 0; i < 10; i++) {
Entry *entry = new Entry();
Expand Down Expand Up @@ -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<Entry *> entries;
std::vector<const Entry *> entries;
char buff[10];
for (int i = 0; i < 21; i++) {
Entry *entry = new Entry();
Expand Down
10 changes: 5 additions & 5 deletions floyd/tools/cl1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int cl1(const std::string path) {
raft_meta->Init();
RaftLog *raft_log = new RaftLog(db, logger);

std::vector<Entry *> entries;
std::vector<const Entry *> entries;
Entry *entry = new Entry();
InitEntry(1, "1", "1", entry);
entries.push_back(entry);
Expand Down Expand Up @@ -110,7 +110,7 @@ int cl2(const std::string path) {
raft_meta->Init();
RaftLog *raft_log = new RaftLog(db, logger);

std::vector<Entry *> entries;
std::vector<const Entry *> entries;
Entry *entry = new Entry();
InitEntry(1, "1", "1", entry);
entries.push_back(entry);
Expand Down Expand Up @@ -173,7 +173,7 @@ int cl3(const std::string path) {
raft_meta->Init();
RaftLog *raft_log = new RaftLog(db, logger);

std::vector<Entry *> entries;
std::vector<const Entry *> entries;
Entry *entry = new Entry();
InitEntry(1, "1", "1", entry);
entries.push_back(entry);
Expand Down Expand Up @@ -245,7 +245,7 @@ int cl4(const std::string path) {
raft_meta->Init();
RaftLog *raft_log = new RaftLog(db, logger);

std::vector<Entry *> entries;
std::vector<const Entry *> entries;
Entry *entry = new Entry();
InitEntry(1, "1", "1", entry);
entries.push_back(entry);
Expand Down Expand Up @@ -300,7 +300,7 @@ int cl5(const std::string path) {
raft_meta->Init();
RaftLog *raft_log = new RaftLog(db, logger);

std::vector<Entry *> entries;
std::vector<const Entry *> entries;
Entry *entry = new Entry();
InitEntry(1, "1", "1", entry);
entries.push_back(entry);
Expand Down

0 comments on commit a83a739

Please sign in to comment.