Skip to content

Commit

Permalink
[ACL]Avoid incrementing crm count when ACL rule create fails (#2238) (#…
Browse files Browse the repository at this point in the history
…2256)

* [ACL]Avoid incrementing crm count when ACL rule create fails
  • Loading branch information
dgsudharsan authored May 5, 2022
1 parent 7377901 commit 172cd13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ bool AclRule::create()
decreaseNextHopRefCount();
}

gCrmOrch->incCrmAclTableUsedCounter(CrmResourceType::CRM_ACL_ENTRY, m_tableOid);
if (status == SAI_STATUS_SUCCESS)
{
gCrmOrch->incCrmAclTableUsedCounter(CrmResourceType::CRM_ACL_ENTRY, m_tableOid);
}

return (status == SAI_STATUS_SUCCESS);
}
Expand Down

0 comments on commit 172cd13

Please sign in to comment.