Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting properties for storage_root_path #2235

Merged
merged 17 commits into from
Nov 22, 2019
Prev Previous commit
Next Next commit
fix alignment
  • Loading branch information
huangwei5 committed Nov 22, 2019
commit 896f6da1d9ae5e11cd133341f42fdae2c7edc194
8 changes: 4 additions & 4 deletions be/src/olap/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace doris {

// compatible with old multi path configuration:
// /path1,2014;/path2,2048
OLAPStatus parse_root_path(const std::string &root_path, StorePath *path) {
OLAPStatus parse_root_path(const std::string& root_path, StorePath* path) {
try {
std::vector<std::string> tmp_vec;
boost::split(tmp_vec, root_path, boost::is_any_of(","),
Expand Down Expand Up @@ -109,13 +109,13 @@ OLAPStatus parse_root_path(const std::string &root_path, StorePath *path) {
return OLAP_SUCCESS;
}

OLAPStatus parse_conf_store_paths(const std::string &config_path,
std::vector<StorePath> *paths) {
OLAPStatus parse_conf_store_paths(const std::string& config_path,
std::vector<StorePath>* paths) {
try {
std::vector<std::string> item_vec;
boost::split(item_vec, config_path, boost::is_any_of(";"),
boost::token_compress_on);
for (auto &item : item_vec) {
for (auto& item : item_vec) {
StorePath path;
auto res = parse_root_path(item, &path);
if (res != OLAP_SUCCESS) {
Expand Down