mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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()
|
startTime := time.Now()
|
||||||
// Swap origBody with data, if origBody is the latest etcd data.
|
// Swap origBody with data, if origBody is the latest etcd data.
|
||||||
opts := etcd.SetOptions{
|
opts := etcd.SetOptions{
|
||||||
PrevValue: origBody,
|
|
||||||
PrevIndex: index,
|
PrevIndex: index,
|
||||||
TTL: time.Duration(ttl) * time.Second,
|
TTL: time.Duration(ttl) * time.Second,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user