Kaynağa Gözat

Merge pull request #5758 from dannysauer/master

index is incremented in Watcher; remove double-increment
Xiang Li 9 yıl önce
ebeveyn
işleme
c949811752
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      etcdctl/ctlv2/command/exec_watch_command.go

+ 1 - 1
etcdctl/ctlv2/command/exec_watch_command.go

@@ -77,7 +77,7 @@ func execWatchCommandFunc(c *cli.Context, ki client.KeysAPI) {
 
 	index := 0
 	if c.Int("after-index") != 0 {
-		index = c.Int("after-index") + 1
+		index = c.Int("after-index")
 	}
 
 	recursive := c.Bool("recursive")