mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
etcd2: remove unnecessary PrevValue in SetOption
This commit is contained in:
parent
55f13b5729
commit
7a0176da57
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user