Skip to content

Commit

Permalink
Backport of NET-7025 - ci: test-integrations failures in compatibilit…
Browse files Browse the repository at this point in the history
…y tests. panics occuring in selectionTracker.TrackIDForSelection into release/1.17.x (#20230)

* backport of commit 2b3b309

* backport of commit 1740fe7

---------

Co-authored-by: John Murret <john.murret@hashicorp.com>
  • Loading branch information
hc-github-team-consul-core and jmurret authored Jan 16, 2024
1 parent cd8f8bf commit 39d60cd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ func (t *WorkloadSelectionTracker) GetIDsForWorkload(id *pbresource.ID) []*pbres
// TrackIDForSelector will associate workloads matching the specified workload
// selector with the given resource id.
func (t *WorkloadSelectionTracker) TrackIDForSelector(id *pbresource.ID, selector *pbcatalog.WorkloadSelector) {
if selector == nil {
return
}

t.lock.Lock()
defer t.lock.Unlock()

Expand Down

0 comments on commit 39d60cd

Please sign in to comment.