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 Sep 27, 2020
1 parent efcb407 commit 1fce6b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/meta/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2838,12 +2838,9 @@ void server_state::clear_app_envs(const app_env_rpc &env_rpc)

void server_state::register_rpc_handlers()
{
static std::once_flag flag;
std::call_once(flag, [&]() {
register_rpc_handler_with_rpc_holder(RPC_CM_QUERY_PARTITION_CONFIG_BY_INDEX,
"query_configuration_by_index",
&server_state::on_query_configuration_by_index);
});
register_rpc_handler_with_rpc_holder(RPC_CM_QUERY_PARTITION_CONFIG_BY_INDEX,
"query_configuration_by_index",
&server_state::on_query_configuration_by_index);
}

void server_state::unregister_rpc_handlers()
Expand Down
2 changes: 1 addition & 1 deletion src/meta/test/state_sync_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void meta_service_test_app::state_sync_test()
// create apss randomly, and sync it to meta state service simple
std::cerr << "testing create apps and sync to remote storage" << std::endl;
{
server_state *ss = ss1.get();
std::shared_ptr<server_state> ss = std::make_shared<server_state>();
ss->initialize(svc, apps_root);

drop_set.clear();
Expand Down

0 comments on commit 1fce6b2

Please sign in to comment.