Clarify comments describing how GuaranteedUpdate() (previously AtomicUpdate() works. Closes #6626.

This commit is contained in:
David Oppenheimer
2015-04-12 15:22:04 -07:00
parent d02139d2b4
commit 6b28a69a1b
5 changed files with 27 additions and 25 deletions

View File

@@ -135,7 +135,7 @@ func (r *BindingREST) setPodHostAndAnnotations(ctx api.Context, podID, oldMachin
if err != nil {
return nil, err
}
err = r.store.Helper.AtomicUpdate(podKey, &api.Pod{}, false, func(obj runtime.Object) (runtime.Object, uint64, error) {
err = r.store.Helper.GuaranteedUpdate(podKey, &api.Pod{}, false, func(obj runtime.Object) (runtime.Object, uint64, error) {
pod, ok := obj.(*api.Pod)
if !ok {
return nil, 0, fmt.Errorf("unexpected object: %#v", obj)