mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #2108 from brendandburns/fix
Fix a missing lock in the fake etcd client.
This commit is contained in:
commit
10de0d1933
@ -239,6 +239,8 @@ func (f *FakeEtcdClient) Delete(key string, recursive bool) (*etcd.Response, err
|
||||
return nil, f.Err
|
||||
}
|
||||
|
||||
f.Mutex.Lock()
|
||||
defer f.Mutex.Unlock()
|
||||
f.Data[key] = EtcdResponseWithError{
|
||||
R: &etcd.Response{
|
||||
Node: nil,
|
||||
|
Loading…
Reference in New Issue
Block a user