TousakaRin commented on a change in pull request #1005: ignore ELIMIT for
circuit breaker
URL: https://github.com/apache/incubator-brpc/pull/1005#discussion_r362206593
##########
File path: src/brpc/circuit_breaker.cpp
##########
@@ -56,6 +65,24 @@ namespace {
#define EPSILON (FLAGS_circuit_breaker_epsilon_value)
+std::once_flag g_init_ignored_error_codes_once;
+std::set<int> g_ignored_error_codes;
Review comment:
这里是存在这个问题,和其他代码一样用pthread_once + 指针到方式初始化了
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]