Skip to content

Commit

Permalink
oomtest: fix data race in the oomCapture (#44952)
Browse files Browse the repository at this point in the history
close #44949
  • Loading branch information
hawkingrei authored Jun 26, 2023
1 parent ab2bec3 commit 431a5bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executor/test/oomtest/oom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ type oomCapture struct {
}

func (h *oomCapture) AddMessageFilter(vals ...string) {
h.mu.Lock()
defer h.mu.Unlock()
for _, val := range vals {
h.messageFilter.Insert(val)
}
Expand Down

0 comments on commit 431a5bb

Please sign in to comment.