Skip to content

Commit

Permalink
cr2
Browse files Browse the repository at this point in the history
  • Loading branch information
wh002 committed Jun 8, 2023
1 parent 6be4475 commit d2a680f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/ranger/ranger_resource_policy_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ dsn::error_code ranger_resource_policy_manager::sync_policies_to_app_envs()

dsn::replication::update_app_env_rpc rpc(std::move(req), LPC_USE_RANGER_ACCESS_CONTROL);
_meta_svc->get_server_state()->set_app_envs(rpc);
_meta_svc->get_server_state()->wait_all_task();
LOG_AND_RETURN_NOT_OK(ERROR, rpc.response().err, "set_app_envs failed.");
break;
}
Expand All @@ -624,6 +625,7 @@ dsn::error_code ranger_resource_policy_manager::sync_policies_to_app_envs()

dsn::replication::update_app_env_rpc rpc(std::move(req), LPC_USE_RANGER_ACCESS_CONTROL);
_meta_svc->get_server_state()->del_app_envs(rpc);
_meta_svc->get_server_state()->wait_all_task();
LOG_AND_RETURN_NOT_OK(ERROR, rpc.response().err, "del_app_envs failed.");
}
}
Expand Down

0 comments on commit d2a680f

Please sign in to comment.