Merge pull request #2108 from brendandburns/fix

Fix a missing lock in the fake etcd client.
This commit is contained in:
Clayton Coleman 2014-11-01 11:36:21 -04:00
commit 10de0d1933

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,