Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syncd: Fix profile iterator bug (#789)
As I didn't see SAI specifying that the user of the service table should reset the iterator before iterating over the values, I think this would come as a surprise to most vendors implementing SAI. Because the iterator was first stored before adding any values to the map, it would be pointing to the profile's .end(), thus if a SAI implementation would try iterating over the values, it'd get none until it'd reset the iterator.
- Loading branch information