Skip to content

Commit

Permalink
fix: drop redundant recent_choose_primary_fail_count (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan authored Dec 9, 2021
1 parent 990bdfd commit 0cd47dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions src/meta/server_load_balancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,7 @@ class local_module_initializer
local_module_initializer local_module_initializer::_instance;
//// end of server load balancer extensions for node state

server_load_balancer::server_load_balancer(meta_service *svc) : _svc(svc)
{
_recent_choose_primary_fail_count.init_app_counter(
"eon.server_load_balancer",
"recent_choose_primary_fail_count",
COUNTER_TYPE_VOLATILE_NUMBER,
"choose primary fail count in the recent period");
}
server_load_balancer::server_load_balancer(meta_service *svc) : _svc(svc) {}

void server_load_balancer::register_proposals(meta_view view,
const configuration_balancer_request &req,
Expand Down
1 change: 0 additions & 1 deletion src/meta/server_load_balancer.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ class server_load_balancer

protected:
meta_service *_svc;
perf_counter_wrapper _recent_choose_primary_fail_count;
};
} // namespace replication
} // namespace dsn

0 comments on commit 0cd47dd

Please sign in to comment.