Skip to content

Commit

Permalink
Merge pull request kubernetes#2108 from brendandburns/fix
Browse files Browse the repository at this point in the history
Fix a missing lock in the fake etcd client.
  • Loading branch information
smarterclayton committed Nov 1, 2014
2 parents f44bb9d + cf4fd87 commit 10de0d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tools/fake_etcd_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 10de0d1

Please sign in to comment.