mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: index is incremented in Watcher; remove double-increment
This commit is contained in:
parent
b945a3fcc8
commit
a998fb4af1
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user