Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 committed Feb 3, 2020
1 parent b4c95d1 commit 14d3f52
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/dist/replication/meta_server/app_env_validator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
Expand All @@ -25,7 +24,6 @@
* THE SOFTWARE.
*/

#include <regex>
#include <dist/replication/common/replication_common.h>
#include <fmt/format.h>
#include <dsn/utility/string_conv.h>
Expand Down Expand Up @@ -106,7 +104,7 @@ bool app_env_validator::validate_app_env(const std::string &env_name,
return true;
}

hint_message = fmt::format("The env of {} is not supported", env_name);
hint_message = fmt::format("app_env \"{}\" is not supported", env_name);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/dist/replication/meta_server/app_env_validator.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
namespace dsn {
namespace replication {

class app_env_validator : public ::dsn::utils::singleton<app_env_validator>
class app_env_validator : public utils::singleton<app_env_validator>
{
public:
app_env_validator() { register_all_validators(); }
Expand Down
3 changes: 0 additions & 3 deletions src/dist/replication/meta_server/server_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,6 @@ class server_state
perf_counter_wrapper _recent_update_config_count;
perf_counter_wrapper _recent_partition_change_unwritable_count;
perf_counter_wrapper _recent_partition_change_writable_count;

std::map<std::string, std::function<bool(const std::string &, std::string &)>>
env_check_functions;
};

} // namespace replication
Expand Down

0 comments on commit 14d3f52

Please sign in to comment.