Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DropCounter]Fix the ordering issue with dropcounter #40

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion orchagent/debugcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ task_process_status DebugCounterOrch::uninstallDebugCounter(const string& counte
string counter_type = counter->getCounterType();
string counter_stat = counter->getDebugCounterSAIStat();

debug_counters.erase(it);
uninstallDebugFlexCounters(counter_type, counter_stat);

if (counter_type == PORT_INGRESS_DROPS || counter_type == PORT_EGRESS_DROPS)
Expand All @@ -347,6 +346,7 @@ task_process_status DebugCounterOrch::uninstallDebugCounter(const string& counte
{
m_counterNameToSwitchStatMap->hdel("", counter_name);
}
debug_counters.erase(it);

SWSS_LOG_NOTICE("Successfully deleted drop counter %s", counter_name.c_str());
return task_process_status::task_success;
Expand Down
Loading