Browse Source

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

Ben Johnson 12 years ago
parent
commit
65663b2dae
4 changed files with 6 additions and 6 deletions
  1. 2 2
      server/registry.go
  2. 2 2
      store/compare_and_swap_command.go
  3. 1 1
      store/stats.go
  4. 1 1
      store/watcher_test.go

+ 2 - 2
server/registry.go

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

+ 2 - 2
store/compare_and_swap_command.go

@@ -16,8 +16,8 @@ type CompareAndSwapCommand struct {
 	Key        string    `json:"key"`
 	Key        string    `json:"key"`
 	Value      string    `json:"value"`
 	Value      string    `json:"value"`
 	ExpireTime time.Time `json:"expireTime"`
 	ExpireTime time.Time `json:"expireTime"`
-	PrevValue  string    `json: prevValue`
-	PrevIndex  uint64    `json: prevIndex`
+	PrevValue  string    `json:"prevValue"`
+	PrevIndex  uint64    `json:"prevIndex"`
 }
 }
 
 
 // The name of the testAndSet command in the log
 // The name of the testAndSet command in the log

+ 1 - 1
store/stats.go

@@ -41,7 +41,7 @@ type Stats struct {
 
 
 	// Number of create requests
 	// Number of create requests
 	CreateSuccess uint64 `json:"createSuccess"`
 	CreateSuccess uint64 `json:"createSuccess"`
-	CreateFail    uint64 `json:createFail`
+	CreateFail    uint64 `json:"createFail"`
 
 
 	// Number of testAndSet requests
 	// Number of testAndSet requests
 	CompareAndSwapSuccess uint64 `json:"compareAndSwapSuccess"`
 	CompareAndSwapSuccess uint64 `json:"compareAndSwapSuccess"`

+ 1 - 1
store/watcher_test.go

@@ -9,7 +9,7 @@ func TestWatcher(t *testing.T) {
 	wh := s.WatcherHub
 	wh := s.WatcherHub
 	c, err := wh.watch("/foo", true, 1)
 	c, err := wh.watch("/foo", true, 1)
 	if err != nil {
 	if err != nil {
-		t.Fatal("%v", err)
+		t.Fatalf("%v", err)
 	}
 	}
 
 
 	select {
 	select {