From 7a0176da57d4b7f7775d82c5b878d0a35de7ac9c Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Mon, 5 Dec 2016 23:40:16 -0800 Subject: [PATCH] etcd2: remove unnecessary PrevValue in SetOption --- pkg/storage/etcd/etcd_helper.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/storage/etcd/etcd_helper.go b/pkg/storage/etcd/etcd_helper.go index d7ddabb65c6..a9fcc9ce848 100644 --- a/pkg/storage/etcd/etcd_helper.go +++ b/pkg/storage/etcd/etcd_helper.go @@ -525,7 +525,6 @@ func (h *etcdHelper) GuaranteedUpdate( startTime := time.Now() // Swap origBody with data, if origBody is the latest etcd data. opts := etcd.SetOptions{ - PrevValue: origBody, PrevIndex: index, TTL: time.Duration(ttl) * time.Second, }