Skip to content

Commit

Permalink
Bugfix: Set meta version when check passed
Browse files Browse the repository at this point in the history
  • Loading branch information
lylei committed Jan 9, 2017
1 parent b724ad1 commit 95bb9be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/meta_converter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ void CheckChunkserverMeta(const std::vector<std::string>& store_path_list) {
LOG(INFO, "[MetaCheck] Chunkserver meta check pass");
} else if (meta_version == EMPTY_META) {
LOG(INFO, "[MetaCheck] Chunkserver empty");
SetChunkserverMetaVersion(meta_dbs);
} else if (meta_version == 0) {
ChunkserverMetaV02V1(meta_dbs);
SetChunkserverMetaVersion(meta_dbs);
} else {
LOG(ERROR, "[MetaCheck] Cannot handle this situation!!!");
exit(EXIT_FAILURE);
}
SetChunkserverMetaVersion(meta_dbs);
CloseMetaStore(meta_dbs);
}

Expand Down

0 comments on commit 95bb9be

Please sign in to comment.