Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 19, 2023
1 parent c3c336a commit d844cdc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion be/src/olap/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ Status parse_conf_store_paths(const string& config_path, std::vector<StorePath>*
paths->emplace_back(std::move(path));
} else {
LOG(WARNING) << "a duplicated path is found " << path.path;
return Status::Error<INVALID_ARGUMENT>("a duplicated path is found, path={}", path.path);
return Status::Error<INVALID_ARGUMENT>("a duplicated path is found, path={}",
path.path);
}
} else {
LOG(WARNING) << "failed to parse store path " << item << ", res=" << res;
Expand Down
3 changes: 2 additions & 1 deletion be/src/runtime/exec_env_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ Status ExecEnv::init(ExecEnv* env, const std::vector<StorePath>& store_paths,
return env->_init(store_paths, broken_paths);
}

Status ExecEnv::_init(const std::vector<StorePath>& store_paths, const std::set<std::string>& broken_paths) {
Status ExecEnv::_init(const std::vector<StorePath>& store_paths,
const std::set<std::string>& broken_paths) {
//Only init once before be destroyed
if (ready()) {
return Status::OK();
Expand Down
4 changes: 3 additions & 1 deletion be/test/olap/options_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ TEST_F(OptionsTest, parse_conf_store_path) {
std::vector<StorePath> paths;
std::string config_path = path1 + ";" + path1;
auto st = parse_conf_store_paths(config_path, &paths);
EXPECT_EQ(Status::Error<ErrorCode::INVALID_ARGUMENT>("a duplicated path is found, path={}", path1), st);
EXPECT_EQ(Status::Error<ErrorCode::INVALID_ARGUMENT>("a duplicated path is found, path={}",
path1),
st);
}
{
std::vector<StorePath> paths;
Expand Down

0 comments on commit d844cdc

Please sign in to comment.