From 1532f7585ba118781b58882997d97ab397ef86c2 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sat, 5 Sep 2015 16:08:15 -0700 Subject: [PATCH] etcdctlv3: fix txn command --- etcdctlv3/command/txn_command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etcdctlv3/command/txn_command.go b/etcdctlv3/command/txn_command.go index 14950724f..2f79f224a 100644 --- a/etcdctlv3/command/txn_command.go +++ b/etcdctlv3/command/txn_command.go @@ -190,13 +190,13 @@ func parseCompare(line string) (*pb.Compare, error) { } case "c", "create": c.Target = pb.Compare_CREATE - c.CreateIndex, err = strconv.ParseInt(parts[3], 10, 64) + c.CreateRevision, err = strconv.ParseInt(parts[3], 10, 64) if err != nil { return nil, fmt.Errorf("invalid txn compare request: %s", line) } case "m", "mod": c.Target = pb.Compare_MOD - c.ModIndex, err = strconv.ParseInt(parts[3], 10, 64) + c.ModRevision, err = strconv.ParseInt(parts[3], 10, 64) if err != nil { return nil, fmt.Errorf("invalid txn compare request: %s", line) }