Merge branch '0.2' of https://github.com/coreos/etcd into config

This commit is contained in:
Ben Johnson
2013-10-21 21:38:58 -06:00
4 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ func (r *Registry) Register(name string, peerVersion string, peerURL string, url
key := path.Join(RegistryKey, name)
value := fmt.Sprintf("raft=%s&etcd=%s&raftVersion=%s", peerURL, url, peerVersion)
_, err := r.store.Create(key, value, false, store.Permanent, commitIndex, term)
log.Debugf("Register: %s (%v)", name, err)
log.Debugf("Register: %s", name)
return err
}
@@ -60,7 +60,7 @@ func (r *Registry) Unregister(name string, commitIndex uint64, term uint64) erro
// Remove the key from the store.
_, err := r.store.Delete(path.Join(RegistryKey, name), false, commitIndex, term)
log.Debugf("Unregister: %s (%v)", name, err)
log.Debugf("Unregister: %s", name)
return err
}