Fix a missing lock in the fake etcd client.

This commit is contained in:
Brendan Burns 2014-10-31 21:35:38 -07:00
parent 69ca97a41c
commit cf4fd8753f

View File

@ -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,