You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixsonic-net/sonic-buildimage#6563
**What I did**
Instead of erasing unsupported resource from m_resourcesMap, mark it as unsupported.
**Why I did it**
Erasing an entry while iterating using range based iterator makes the iterator invalid.
Also removing a resource from the m_resourcesMap impacts cross access while iterating other maps (eg crmUsedCntsTableMap).
**How I verified it**
Added a new unsupported resource for testing and verified the logs.
0 commit comments