Browse Source

etcdctl: index is incremented in Watcher; remove double-increment

Danny Sauer 9 years ago
parent
commit
a998fb4af1
1 changed files with 1 additions and 1 deletions
  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")