-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev_common: Add mutex around metricDescs access
In certain instances on heavily loaded nodes with many network devices, there may be concurrent access to the netdev collector's `metricDescs` map, resulting in a panic. This adds a mutex to prevent concurrent reads and writes to the map. Signed-off-by: Brad Ison <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters