We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc03a4b commit a48dbefCopy full SHA for a48dbef
pkg/cri/store/sandbox/sandbox.go
@@ -129,8 +129,8 @@ func (s *Store) List() []Sandbox {
129
// stats present in 'newContainerStats'. Returns errdefs.ErrNotFound
130
// if the sandbox does not exist in the store.
131
func (s *Store) UpdateContainerStats(id string, newContainerStats *stats.ContainerStats) error {
132
- s.lock.RLock()
133
- defer s.lock.RUnlock()
+ s.lock.Lock()
+ defer s.lock.Unlock()
134
id, err := s.idIndex.Get(id)
135
if err != nil {
136
if err == truncindex.ErrNotExist {
0 commit comments