-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unncessary mutex usage in the secondary network CNI cache (#3232)
The cache itself uses cache.Indexer which is thread-safe, and so needs not the mutex to protect cache accesses. The mutex should be used just for protecting CNIConfigInfo.PodCNIDeleted, which is written by CNIServer and read by the secondary network Pod controller. Signed-off-by: Jianjun Shen <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 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